Fix #99549: Remember Previous Status #104217
@ -286,8 +286,8 @@ func TestWorkerRememberPreviousStatus(t *testing.T) {
|
||||
savedWorker.StatusRequested = api.WorkerStatusAwake
|
||||
savedWorker.LazyStatusRequest = false
|
||||
mf.persistence.EXPECT().SaveWorkerStatus(gomock.Any(), &savedWorker).Return(nil)
|
||||
mf.stateMachine.EXPECT().RequeueActiveTasksOfWorker(gomock.Any(), gomock.Eq(&worker), "worker signed off").Return(nil)
|
||||
mf.persistence.EXPECT().WorkerSeen(gomock.Any(), gomock.Eq(&worker))
|
||||
mf.stateMachine.EXPECT().RequeueActiveTasksOfWorker(gomock.Any(), &worker, "worker signed off").Return(nil)
|
||||
mf.persistence.EXPECT().WorkerSeen(gomock.Any(), &worker)
|
||||
|
||||
echo := mf.prepareMockedRequest(nil)
|
||||
requestWorkerStore(echo, &worker)
|
||||
|
Loading…
Reference in New Issue
Block a user