Manager: fix unit test

rFcfb17b178da2055ef12b2aa2ad8f7f778a952bc3 changed the semantics of
`SocketIOWorkerUpdate`, in the sense that any update that doesn't change
the worker status can omit `previous_status`. This commit adjusts the
unit test for this.
This commit is contained in:
Sybren A. Stüvel 2022-06-02 12:13:25 +02:00
parent 487a31624f
commit ae6831ce6e

View File

@ -143,7 +143,6 @@ func TestRequestWorkerStatusChange(t *testing.T) {
mf.broadcaster.EXPECT().BroadcastWorkerUpdate(api.SocketIOWorkerUpdate{ mf.broadcaster.EXPECT().BroadcastWorkerUpdate(api.SocketIOWorkerUpdate{
Id: worker.UUID, Id: worker.UUID,
Nickname: worker.Name, Nickname: worker.Name,
PreviousStatus: &prevStatus,
Status: prevStatus, Status: prevStatus,
StatusRequested: &requestStatus, StatusRequested: &requestStatus,
LazyStatusRequest: ptr(true), LazyStatusRequest: ptr(true),