Skip to content

Commit

Permalink
Fix task rescheduler flaky test (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt committed Jul 27, 2022
1 parent 8c24825 commit 942041f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/queues/rescheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (s *rescheudulerSuite) TestStartStop() {
rescheduler.Start()

numTasks := 20
taskCh := make(chan struct{})
taskCh := make(chan struct{}, numTasks)
s.mockScheduler.EXPECT().TrySubmit(gomock.Any()).DoAndReturn(func(_ Executable) (bool, error) {
taskCh <- struct{}{}
return true, nil
Expand Down

0 comments on commit 942041f

Please sign in to comment.