From 6db3c3f862591e34a1358c36cc4d7d4e3708afad Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Thu, 28 Oct 2021 15:16:39 +0300 Subject: [PATCH] Fix TestGetConsolidatedConfig with -count 2 --- cloudapi/config_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cloudapi/config_test.go b/cloudapi/config_test.go index a80e4633095..30859276a1d 100644 --- a/cloudapi/config_test.go +++ b/cloudapi/config_test.go @@ -85,6 +85,7 @@ func TestGetConsolidatedConfig(t *testing.T) { //nolint:paralleltest require.Equal(t, config.Token.String, "ext") require.NoError(t, os.Setenv("K6_CLOUD_TOKEN", "envvalue")) // TODO drop when we don't use envconfig + defer os.Unsetenv("K6_CLOUD_TOKEN") //nolint:errcheck config, err = GetConsolidatedConfig(json.RawMessage(`{"token":"jsonraw"}`), nil, "", map[string]json.RawMessage{"loadimpact": json.RawMessage(`{"token":"ext"}`)}) require.NoError(t, err)