Skip to content

Commit 7288c09

Browse files
committed
tests: Fix tests on Windows
1 parent 32602e4 commit 7288c09

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

integration-tests/tests/async.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ test.serial("Timeout option", async (t) => {
376376
// Allow some tolerance for the timeout.
377377
t.is(elapsed > timeout/2, true);
378378
}
379+
conn1.close();
380+
conn2.close();
379381
fs.unlinkSync(path);
380382
});
381383

integration-tests/tests/sync.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ test.serial("Timeout option", async (t) => {
440440
// Allow some tolerance for the timeout.
441441
t.is(elapsed > timeout/2, true);
442442
}
443+
conn1.close();
444+
conn2.close();
443445
fs.unlinkSync(path);
444446
});
445447

0 commit comments

Comments
 (0)