Skip to content

Commit

Permalink
#1059@patch: Increases timeout for when Window.happyDOM.whenAsyncComp…
Browse files Browse the repository at this point in the history
…lete().
  • Loading branch information
capricorn86 committed Sep 12, 2023
1 parent 8a5ab53 commit 28f71d6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class AsyncTaskManager {
} else {
this.endTimer(timerID);
}
});
}, 10);
this.startTimer(timerID);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/happy-dom/test/fetch/Fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,7 @@ describe('Fetch', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 110);
}, 120);
});
});
});
12 changes: 6 additions & 6 deletions packages/happy-dom/test/fetch/Request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -539,7 +539,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -573,7 +573,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -606,7 +606,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -641,7 +641,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -677,7 +677,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down
12 changes: 6 additions & 6 deletions packages/happy-dom/test/fetch/Response.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -241,7 +241,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -276,7 +276,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down Expand Up @@ -385,7 +385,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});

Expand All @@ -409,7 +409,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 20);
}, 30);
});
});
});
Expand Down

0 comments on commit 28f71d6

Please sign in to comment.