Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN committed Nov 29, 2023
1 parent 1b4995b commit f1f7bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/common/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe("common/server", () => {
await grpcServer.start();

// Sleep 3s to get everything ready
await NodeJSUtil.sleep(3000);
//await NodeJSUtil.sleep(3000);
});

beforeEach(() => {
Expand All @@ -165,7 +165,7 @@ describe("common/server", () => {
const res = await server.client.pubsub.publish(pubSubName, getTopic(topicWithStatusCb, protocol), "SUCCESS");
expect(res.error).toBeUndefined();
// Delay a bit for event to arrive
await new Promise((resolve, _reject) => setTimeout(resolve, 1000));
await new Promise((resolve, _reject) => setTimeout(resolve, 3000));
expect(mockSubscribeStatusHandler.mock.calls.length).toBe(1);
expect(mockSubscribeStatusHandler.mock.calls[0][1]).toEqual("SUCCESS");
expect(mockSubscribeDeadletterHandler.mock.calls.length).toBe(0);
Expand Down

0 comments on commit f1f7bcf

Please sign in to comment.