mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix issue where submission requests would time out before they could be used once
This commit is contained in:
@@ -59,12 +59,11 @@ describe('SubmissionRestService test suite', () => {
|
||||
describe('getDataById', () => {
|
||||
it('should configure a new SubmissionRequest', () => {
|
||||
const expected = new SubmissionRequest(requestService.generateRequestId(), resourceHref);
|
||||
// set cache time to zero
|
||||
expected.responseMsToLive = 0;
|
||||
expected.forceBypassCache = true;
|
||||
scheduler.schedule(() => service.getDataById(resourceEndpoint, resourceScope).subscribe());
|
||||
scheduler.flush();
|
||||
|
||||
expect(requestService.removeByHrefSubstring).toHaveBeenCalledWith(resourceHref);
|
||||
expect(requestService.configure).toHaveBeenCalledWith(expected);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user