Skip to content

Commit 6db3c3f

Browse files
committed
Fix TestGetConsolidatedConfig with -count 2
1 parent b7de6d7 commit 6db3c3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cloudapi/config_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func TestGetConsolidatedConfig(t *testing.T) { //nolint:paralleltest
8585
require.Equal(t, config.Token.String, "ext")
8686

8787
require.NoError(t, os.Setenv("K6_CLOUD_TOKEN", "envvalue")) // TODO drop when we don't use envconfig
88+
defer os.Unsetenv("K6_CLOUD_TOKEN") //nolint:errcheck
8889
config, err = GetConsolidatedConfig(json.RawMessage(`{"token":"jsonraw"}`), nil, "",
8990
map[string]json.RawMessage{"loadimpact": json.RawMessage(`{"token":"ext"}`)})
9091
require.NoError(t, err)

0 commit comments

Comments
 (0)