Fix flaky TestUpdateRunnersLogsErrorFromWatchAllocation.

This commit is contained in:
Maximilian Paß
2023-11-14 22:24:38 +01:00
parent 3ce014f5f3
commit 7a446fee26

View File

@ -260,13 +260,10 @@ func (s *ManagerTestSuite) TestUpdateRunnersLogsErrorFromWatchAllocation() {
})
})
go func() {
err := s.nomadRunnerManager.SynchronizeRunners(s.TestCtx)
if err != nil {
log.WithError(err).Error("failed to synchronize runners")
}
}()
<-time.After(10 * time.Millisecond)
s.Require().Equal(3, len(hook.Entries))
s.Equal(logrus.ErrorLevel, hook.LastEntry().Level)