Skip to content

Commit

Permalink
Merge pull request DSpace#2561 from alexandrevryghem/fix-failing-requ…
Browse files Browse the repository at this point in the history
…est-service-test

Fix RequestService test sometimes failing in CICD
  • Loading branch information
tdonohue authored Oct 23, 2023
2 parents bf8519c + fb31533 commit a9d7ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/core/data/request.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ describe('RequestService', () => {
spyOn(service, 'getByHref').and.returnValue(observableOf(staleRE));
spyOn(store, 'dispatch');
service.setStaleByHref(href).subscribe(() => {
expect(store.dispatch).toHaveBeenCalledWith(new RequestStaleAction(uuid));
const requestStaleAction = new RequestStaleAction(uuid);
requestStaleAction.lastUpdated = jasmine.any(Number) as any;
expect(store.dispatch).toHaveBeenCalledWith(requestStaleAction);
done();
});
});
Expand Down

0 comments on commit a9d7ee3

Please sign in to comment.