Skip to content

Commit

Permalink
wait longer for binding test to receive event to hopefully fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: greenie-msft <[email protected]>
  • Loading branch information
greenie-msft authored Jul 31, 2024
1 parent e5a763b commit 6bc1602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/grpc/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe("grpc/server", () => {
await server.client.binding.send("binding-mqtt", "create", { hello: "world" });

// Delay a bit for event to arrive
await new Promise((resolve, _reject) => setTimeout(resolve, 1000));
await new Promise((resolve, _reject) => setTimeout(resolve, 5000));
expect(mockBindingReceive.mock.calls.length).toBe(1);

// Also test for receiving data
Expand Down

0 comments on commit 6bc1602

Please sign in to comment.