Skip to content

Commit

Permalink
Fix TestGetConsolidatedConfig with -count 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Oct 28, 2021
1 parent b7de6d7 commit 6db3c3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudapi/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6db3c3f

Please sign in to comment.