Backport "Same Configuration Check" from master

This commit is contained in:
Richard Kojedzinszky
2020-07-01 11:36:03 +02:00
committed by GitHub
parent c65277a6f0
commit 463e2285d6
2 changed files with 10 additions and 8 deletions

View File

@@ -304,9 +304,11 @@ func TestThrottleProviderConfigReload(t *testing.T) {
}
}()
// publish 5 new configs, one new config each 10 milliseconds
// publish 5 new and different configs, one new config each 10 milliseconds
for i := 0; i < 5; i++ {
providerConfig <- types.ConfigMessage{}
providerConfig <- types.ConfigMessage{
ProviderName: fmt.Sprintf("test-%d", i),
}
time.Sleep(10 * time.Millisecond)
}