Skip to content

Commit 2454301

Browse files
test: stability
1 parent 8e273d1 commit 2454301

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
3939
"build:code": "babel src -d dist --copy-files",
4040
"build": "npm-run-all -p \"build:**\"",
41-
"test:only": "node --trace-deprecation node_modules/.bin/jest",
41+
"test:only": "jest",
4242
"test:watch": "npm run test:only -- --watch",
4343
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
4444
"pretest": "npm run lint",

src/middleware.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,16 +1075,16 @@ function wrapper(context) {
10751075

10761076
if (outgoing) {
10771077
// Response finished, cleanup
1078-
onFinishedStream(outgoing, (err) => {
1079-
if (err) {
1080-
context.logger.error("Stream error:", err);
1081-
}
1082-
1083-
destroyStream(
1084-
/** @type {import("fs").ReadStream} */ (bufferOrStream),
1085-
true,
1086-
);
1087-
});
1078+
// onFinishedStream(outgoing, (err) => {
1079+
// if (err) {
1080+
// context.logger.error("Stream error:", err);
1081+
// }
1082+
//
1083+
// destroyStream(
1084+
// /** @type {import("fs").ReadStream} */ (bufferOrStream),
1085+
// true,
1086+
// );
1087+
// });
10881088
}
10891089
}
10901090

0 commit comments

Comments
 (0)