Skip to content

Commit ca6fe90

Browse files
fix: move connect up
This should allow onclose to be properly overwritten
1 parent b93d564 commit ca6fe90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/integration-tests/process-cleanup.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ describe('Process cleanup', () => {
5757
cwd: __dirname
5858
});
5959

60+
await client.connect(transport);
61+
6062
let onCloseWasCalled = 0;
6163
client.onclose = () => {
6264
onCloseWasCalled++;
6365
};
6466

65-
await client.connect(transport);
6667
await client.close();
6768

6869
// A short delay to allow the close event to propagate

0 commit comments

Comments
 (0)