Skip to content

Commit e5302fb

Browse files
committed
fixup
1 parent 90f2a2d commit e5302fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deps/undici/src/lib/mock/pending-interceptors-formatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ module.exports = class PendingInterceptorsFormatter {
3838
}))
3939

4040
this.logger.table(withPrettyHeaders)
41-
return this.transform.read().toString()
41+
return this.transform.read(this.transform.readableLength).toString()
4242
}
4343
}

test/common/heap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const { getHeapSnapshot } = require('v8');
2121

2222
function createJSHeapSnapshot(stream = getHeapSnapshot()) {
2323
stream.pause();
24-
const dump = JSON.parse(stream.read());
24+
const dump = JSON.parse(stream.read(stream.readableLength));
2525
const meta = dump.snapshot.meta;
2626

2727
const nodes =

0 commit comments

Comments
 (0)