From 6f1eaef8d4d579cef54a8605a2e5de8483f5fb41 Mon Sep 17 00:00:00 2001 From: ccase Date: Fri, 20 Dec 2019 17:39:20 -0500 Subject: [PATCH] cmd/uplink: Pass -- in tests to avoid treating generated arg strings as flags. Change-Id: I41c50b9f645b57ddc8832b0fc92f1c6bfaf2de8d --- cmd/uplink/cmd/meta_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/uplink/cmd/meta_test.go b/cmd/uplink/cmd/meta_test.go index fa059453c..144fbc882 100644 --- a/cmd/uplink/cmd/meta_test.go +++ b/cmd/uplink/cmd/meta_test.go @@ -125,7 +125,7 @@ func TestSetGetMeta(t *testing.T) { cmd := exec.Command(uplinkExe, "--config-dir", ctx.Dir("uplink"), - "meta", "get", string(keyNorm[1:len(keyNorm)-1]), uri, + "meta", "get", "--", string(keyNorm[1:len(keyNorm)-1]), uri, ) t.Log(cmd)