mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
Fix unhandled promise rejection in Link tests
This commit is contained in:
1 parent
3838bc6a70
commit
60e5ed008d
1 file changed
+1
@@ -127,6 +127,7 @@ describe("Integration of lib/link", function() {
|
||||
hostConnectorFirst.token = hostConnector.token;
|
||||
hostConnectorFirst.hostId = hostConnector.hostId;
|
||||
const onceClose = events.once(hostConnectorFirst, "close");
|
||||
onceClose.catch(() => {}); // Prevent unhandled promise rejection.
|
||||
await hostConnectorFirst.connect();
|
||||
await hostConnector.connect();
|
||||
await assert.rejects(
|
||||
|
||||
Reference in new issue
Block a user