Skip to content

Commit bf0544f

Browse files
committed
test: wait for service to be created
1 parent 1210639 commit bf0544f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ describe("service", () => {
4141
it("should work", async () => {
4242
expect(service.exists()).toBe(false);
4343
service.install(TOKEN);
44-
expect(service.exists()).toBe(true);
4544

4645
await new Promise((r) => setTimeout(r, 15_000));
4746

47+
expect(service.exists()).toBe(true);
4848
const current = service.current();
4949
expect(current.tunnelID.length).toBeGreaterThan(0);
5050
expect(current.connectorID.length).toBeGreaterThan(0);

0 commit comments

Comments
 (0)