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 7551288 commit bc51a99
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 @@ -154,7 +154,7 @@ describe("common/server", () => {

// Helper function to run the test for both HTTP and gRPC.
const runIt = async (name: string, fn: (server: DaprServer, protocol: string) => void) => {
it(protocolHttp + "/" + name, async () => fn(httpServer, protocolHttp));
//it(protocolHttp + "/" + name, async () => fn(httpServer, protocolHttp));
it(protocolGrpc + "/" + name, async () => fn(grpcServer, protocolGrpc));
};

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, 4000));
await new Promise((resolve, _reject) => setTimeout(resolve, 1000));
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 bc51a99

Please sign in to comment.