diff --git a/test/e2e/common/server.test.ts b/test/e2e/common/server.test.ts index dd3e9515..affc02f0 100644 --- a/test/e2e/common/server.test.ts +++ b/test/e2e/common/server.test.ts @@ -12,6 +12,7 @@ limitations under the License. */ import { CommunicationProtocolEnum, DaprServer, DaprPubSubStatusEnum } from "../../../src"; +import * as NodeJSUtil from "../../../src/utils/NodeJS.util"; const serverHost = "127.0.0.1"; const serverGrpcPort = "50001"; @@ -137,6 +138,9 @@ describe("common/server", () => { await httpServer.start(); await grpcServer.start(); + + // sleep 2s to get everything ready + await NodeJSUtil.sleep(2000); }); beforeEach(() => {