Skip to content

Commit

Permalink
chore: [#1507] Attempt to fix shaky unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Aug 30, 2024
1 parent 6128883 commit 1305dae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
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 @@ -514,7 +514,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -555,7 +555,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -589,7 +589,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -622,7 +622,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -663,7 +663,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -795,7 +795,7 @@ describe('Request', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down
14 changes: 7 additions & 7 deletions packages/happy-dom/test/fetch/Response.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -233,7 +233,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -273,7 +273,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -315,7 +315,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});
});
Expand Down Expand Up @@ -455,7 +455,7 @@ describe('Response', () => {
setTimeout(() => {
expect(isAsyncComplete).toBe(true);
resolve(null);
}, 30);
}, 50);
});
});

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

0 comments on commit 1305dae

Please sign in to comment.