Skip to content

Commit

Permalink
test: make copy of global config before mutating it
Browse files Browse the repository at this point in the history
  • Loading branch information
danxmoran committed Nov 23, 2020
1 parent 1f0d365 commit ead83ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions query/control/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func validateUnusedMemory(t testing.TB, reg *prometheus.Registry, c control.Conf
}

func TestConfig_ValidateMaxConcurrencyQuota(t *testing.T) {
config := config
config.ConcurrencyQuota = control.MaxQueryConcurrency + 1
ctrl, err := control.New(config)
if err == nil {
Expand Down

0 comments on commit ead83ba

Please sign in to comment.