Fix flaky TestUpdateRunnersLogsErrorFromWatchAllocation.
This commit is contained in:
@ -260,13 +260,10 @@ func (s *ManagerTestSuite) TestUpdateRunnersLogsErrorFromWatchAllocation() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
go func() {
|
err := s.nomadRunnerManager.SynchronizeRunners(s.TestCtx)
|
||||||
err := s.nomadRunnerManager.SynchronizeRunners(s.TestCtx)
|
if err != nil {
|
||||||
if err != nil {
|
log.WithError(err).Error("failed to synchronize runners")
|
||||||
log.WithError(err).Error("failed to synchronize runners")
|
}
|
||||||
}
|
|
||||||
}()
|
|
||||||
<-time.After(10 * time.Millisecond)
|
|
||||||
|
|
||||||
s.Require().Equal(3, len(hook.Entries))
|
s.Require().Equal(3, len(hook.Entries))
|
||||||
s.Equal(logrus.ErrorLevel, hook.LastEntry().Level)
|
s.Equal(logrus.ErrorLevel, hook.LastEntry().Level)
|
||||||
|
Reference in New Issue
Block a user