Skip to content

Commit

Permalink
test: increase timeout on cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lewnelson committed Jan 26, 2023
1 parent 5fc75aa commit 030836b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/cli/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import * as path from "path";
const generatedDirectory = path.join(__dirname, "generated");
const cliPath = path.join("..", "..", "cli", "index.js");

const COMMAND_TIMEOUT = 15e3;

const runCommand = async (
input: string,
destination: string,
Expand Down Expand Up @@ -67,7 +69,7 @@ describe("'grpc-ts generate' cli command", () => {
beforeAll(async () => {
await runCommand("../protos", "./generated", true);
filesystemTree = getFilesystemTree(generatedDirectory);
});
}, COMMAND_TIMEOUT);

afterAll(async () => {
await cleanup();
Expand Down Expand Up @@ -307,7 +309,7 @@ describe("'grpc-ts generate' cli command", () => {
beforeAll(async () => {
await runCommand("../protos", "./generated", false);
filesystemTree = getFilesystemTree(generatedDirectory);
});
}, COMMAND_TIMEOUT);

afterAll(async () => {
await cleanup();
Expand Down Expand Up @@ -445,7 +447,7 @@ describe("'grpc-ts generate' cli command", () => {
beforeAll(async () => {
await runCommand("../protos/events.proto", "./generated");
filesystemTree = getFilesystemTree(generatedDirectory);
});
}, COMMAND_TIMEOUT);

afterAll(async () => {
await cleanup();
Expand Down Expand Up @@ -496,7 +498,7 @@ describe("'grpc-ts generate' cli command", () => {
"./generated"
);
filesystemTree = getFilesystemTree(generatedDirectory);
});
}, COMMAND_TIMEOUT);

afterAll(async () => {
await cleanup();
Expand Down Expand Up @@ -549,7 +551,7 @@ describe("'grpc-ts generate' cli command", () => {
filesystemTree = getFilesystemTree(
path.join(generatedDirectory, "subdirectory", "generated")
);
});
}, COMMAND_TIMEOUT);

afterAll(async () => {
await cleanup();
Expand Down

0 comments on commit 030836b

Please sign in to comment.