Skip to content

Commit

Permalink
fix test rebasing broke
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Oct 2, 2024
1 parent 49e2dc7 commit e556e2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/vt/throttler/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,9 @@ func TestThreadFinished_SecondCallPanics(t *testing.T) {

func TestThrottlerMaxLag(t *testing.T) {
fc := &fakeClock{}
throttler, err := newThrottlerWithClock(t.Name(), "queries", 1, 1, 10, fc.now)
th, err := newThrottlerWithClock(t.Name(), "queries", 1, 1, 10, fc.now)
require.NoError(t, err)
throttler := th.(*ThrottlerImpl)
defer throttler.Close()

require.NotNil(t, throttler)
Expand Down Expand Up @@ -442,7 +443,7 @@ func TestThrottlerMaxLag(t *testing.T) {
}()

wg.Add(1)
go func(wg *sync.WaitGroup, ctx context.Context, throttler *Throttler, tabletType topodata.TabletType) {
go func(wg *sync.WaitGroup, ctx context.Context, throttler *ThrottlerImpl, tabletType topodata.TabletType) {
defer wg.Done()
for {
select {
Expand Down

0 comments on commit e556e2f

Please sign in to comment.