Add unit tests for runner recovery.

This commit is contained in:
Maximilian Paß
2023-10-30 16:44:19 +01:00
committed by Sebastian Serth
parent 160a097d07
commit f259d65aa4
3 changed files with 109 additions and 1 deletions

View File

@ -267,7 +267,7 @@ func (s *ManagerTestSuite) TestUpdateRunnersLogsErrorFromWatchAllocation() {
}()
<-time.After(10 * time.Millisecond)
s.Require().Equal(1, len(hook.Entries))
s.Require().Equal(3, len(hook.Entries))
s.Equal(logrus.ErrorLevel, hook.LastEntry().Level)
err, ok := hook.LastEntry().Data[logrus.ErrorKey].(error)
s.Require().True(ok)