Skip to content

Commit a8b3564

Browse files
committed
fix: 🐛 abort should be after request body has consumer
1 parent 9cabb20 commit a8b3564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/fetch/test/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,9 @@ describe("node-fetch", () => {
11591159
.and.have.property("name", "AbortError"),
11601160
]);
11611161

1162-
controller.abort();
1162+
setTimeout(() => {
1163+
controller.abort();
1164+
}, 10);
11631165

11641166
return result;
11651167
});

0 commit comments

Comments
 (0)