Skip to content

Commit

Permalink
No need for artificial sleep
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Jan 17, 2024
1 parent 7ff9389 commit bc9d767
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion go/vt/vttablet/tabletserver/throttle/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ func TestProbesPostDisable(t *testing.T) {
throttler := newTestThrottler()
runThrottler(t, throttler, 2*time.Second, nil)

time.Sleep(time.Second) // throttler's Operate() quits asynchronously. For sake of `go test -race` we allow a graceful wait.
probes := throttler.mysqlInventory.ClustersProbes
assert.NotEmpty(t, probes)

Expand Down

0 comments on commit bc9d767

Please sign in to comment.