Skip to content

Commit

Permalink
sleep to get everything ready
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN committed Nov 28, 2023
1 parent d33c5a4 commit a00594c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/common/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -137,6 +138,9 @@ describe("common/server", () => {

await httpServer.start();
await grpcServer.start();

// sleep 2s to get everything ready
await NodeJSUtil.sleep(2000);
});

beforeEach(() => {
Expand Down

0 comments on commit a00594c

Please sign in to comment.