Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ui-spa/src/common/utils/pollTransferStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ describe("pollTransferStatus", async () => {
100,
);

// The grace window is 30s of wall-clock. Just before it elapses the loop is
// The grace window is 90s of wall-clock. Just before it elapses the loop is
// still polling and has not surfaced an error.
await vi.advanceTimersByTimeAsync(29900);
await vi.advanceTimersByTimeAsync(89900);
expect(handleResponse).to.toHaveBeenCalledTimes(0);
expect(handleError).to.toHaveBeenCalledTimes(0);
expect(getTransferStatus).to.toHaveBeenCalled();
Expand All @@ -270,7 +270,7 @@ describe("pollTransferStatus", async () => {

// The loop has given up: no further polling and no further errors.
const callsAfterStop = (getTransferStatus as Mock).mock.calls.length;
await vi.advanceTimersByTimeAsync(30000);
await vi.advanceTimersByTimeAsync(90000);
expect(getTransferStatus).to.toHaveBeenCalledTimes(callsAfterStop);
expect(handleError).to.toHaveBeenCalledTimes(1);
});
Expand Down
2 changes: 1 addition & 1 deletion ui-spa/src/common/utils/pollTransferStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const MID_INTERVAL_MS = 3000;
* instead of polling forever (e.g. an orchestration that failed before the
* entity was created, or a stale/incorrect transfer ID).
*/
const NOT_FOUND_GRACE_MS = 30000;
const NOT_FOUND_GRACE_MS = 90000; // 90s

/**
* Polls the transfer status endpoint with adaptive backoff until a terminal state is reached
Expand Down
Loading