We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0823489 commit ad5ef0eCopy full SHA for ad5ef0e
packages/node-integration-tests/utils/index.ts
@@ -255,9 +255,17 @@ export class TestEnv {
255
// Ex: Remix scope bleed tests.
256
nock.cleanAll();
257
258
- void this._closeServer().then(() => {
259
- resolve(envelopes);
260
- });
+ // Abort all pending requests to nock to prevent hanging / flakes.
+ // See: https://github.com/nock/nock/issues/1118#issuecomment-544126948
+ nock.abortPendingRequests();
261
+
262
+ this._closeServer()
263
+ .catch(e => {
264
+ logger.warn(e);
265
+ })
266
+ .finally(() => {
267
+ resolve(envelopes);
268
+ });
269
} else {
270
resolve(envelopes);
271
}
0 commit comments