Skip to content

Commit 0ae5ddf

Browse files
committed
update test
1 parent 1490801 commit 0ae5ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/watch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export class Watch {
3939
const requestInit = await this.config.applyToFetchOptions({});
4040

4141
const controller = new AbortController();
42+
const timeoutSignal = AbortSignal.timeout(30000);
43+
requestInit.signal = AbortSignal.any([controller.signal, timeoutSignal]);
4244
requestInit.signal = controller.signal as AbortSignal;
4345
requestInit.method = 'GET';
44-
requestInit.timeout = 30000;
4546

4647
let doneCalled: boolean = false;
4748
const doneCallOnce = (err: any) => {

0 commit comments

Comments
 (0)