Skip to content

Commit

Permalink
Jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Feb 6, 2025
1 parent 007be9c commit 36b37ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/matterbridgeEndpoint-default.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ describe('MatterbridgeEndpoint class', () => {

// eslint-disable-next-line jest/expect-expect
test('pause before cleanup', async () => {
await new Promise((resolve) => setTimeout(resolve, 5000)); // Pause for 5 seconds
await new Promise((resolve) => setTimeout(resolve, 5000)); // Pause for 5 seconds to allow matter.js promises to settle
}, 60000);
});
});
2 changes: 1 addition & 1 deletion src/matterbridgeEndpoint-matterjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ describe('MatterbridgeEndpoint class', () => {
test('close server node', async () => {
expect(server).toBeDefined();
await server.close();
await server.env.get(MdnsService)[Symbol.asyncDispose](); // loadInstance(false) does not start the mDNS service
await server.env.get(MdnsService)[Symbol.asyncDispose](); // loadInstance(false) so destroyInstance() does not stop the mDNS service
});
});
});

0 comments on commit 36b37ee

Please sign in to comment.