Skip to content

Commit

Permalink
fix test errors?
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Jun 17, 2024
1 parent 47c0797 commit d7c74e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
"include": [
"**/*.ts"
],
"ts-node": {
"files": true
},
"compilerOptions": {
"types": [
"mocha"
],
"lib": [
"ESNext"
"ESNext",
]
}
}
2 changes: 1 addition & 1 deletion test/unit/socket-send-receive-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ for (const proto of testProtos("tcp", "ipc", "inproc")) {
it("should copy and release small buffers", async function () {
const gc = getGcOrSkipTest(this)
let weakRef: undefined | WeakRef<any>
sockA.connect(uniqAddress(proto))
sockA.connect(await uniqAddress(proto))
const send = async (size: number) => {
const msg = Buffer.alloc(size)
weakRef = new WeakRef(msg)
Expand Down

0 comments on commit d7c74e9

Please sign in to comment.