Skip to content

Commit

Permalink
missing check
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Jun 17, 2024
1 parent 52b57b4 commit 9213ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/vt/throttler/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ func TestThreadFinished(t *testing.T) {

// Max rate update to threadThrottlers happens asynchronously. Wait for it.
timer := time.NewTimer(2 * time.Second)
throttlerImpl := throttler.(*ThrottlerImpl)
throttlerImpl, ok := throttler.(*ThrottlerImpl)
require.True(t, ok)
for {
if throttlerImpl.threadThrottlers[0].getMaxRate() == 2 {
timer.Stop()
Expand Down

0 comments on commit 9213ba4

Please sign in to comment.