Skip to content

Commit

Permalink
fix lint and mock gen
Browse files Browse the repository at this point in the history
  • Loading branch information
carlydf committed Oct 11, 2024
1 parent dbac394 commit a95d0fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions common/quotas/clocked_rate_limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestClockedRateLimiter_Wait_Recycle(t *testing.T) {
asserted = true
}()
// wait for rl.Wait() to start and get to the select statement
time.Sleep(10 * time.Millisecond)
time.Sleep(10 * time.Millisecond) // nolint

// once a waiter exists, recycle the token instead of advancing time
rl.RecycleToken()
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestClockedRateLimiter_WaitN_NoRecycle(t *testing.T) {
asserted = true
}()
// wait for rl.Wait() to start and get to the select statement
time.Sleep(10 * time.Millisecond)
time.Sleep(10 * time.Millisecond) // nolint

// once a waiter exists, recycle the token instead of advancing time
rl.RecycleToken()
Expand Down
15 changes: 10 additions & 5 deletions common/quotas/rate_limiter_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion service/matching/matching_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ func (s *matchingEngineSuite) TestAddTaskAfterStartFailure() {
task, _, err := s.matchingEngine.pollTask(context.Background(), dbq.partition, &pollMetadata{})
s.NoError(err)

task.finish(errors.New("test error"), true)
task.finish(serviceerror.NewInternal("test error"), true)
s.EqualValues(1, s.taskManager.getTaskCount(dbq))
task2, _, err := s.matchingEngine.pollTask(context.Background(), dbq.partition, &pollMetadata{})
s.NoError(err)
Expand Down

0 comments on commit a95d0fb

Please sign in to comment.