Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cli/api/commands/base_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export abstract class BaseWorker<TResponse, TMessage = any> {

const timeout = setTimeout(() => {
terminate(() =>
reject(new Error(`Compilation timed out after ${timeoutMillis / 1000} seconds`))
reject(new Error(
`Compilation timed out after ${timeoutMillis / 1000} seconds. ` +
`To allow more time, re-run with a longer --timeout ` +
`(e.g. --timeout=2m, --timeout=1h).`
))
);
}, timeoutMillis);

Expand Down
2 changes: 1 addition & 1 deletion cli/api/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const DEFAULT_COMPILATION_TIMEOUT_MILLIS = 30000;
export const DEFAULT_COMPILATION_TIMEOUT_MILLIS = 60000;
5 changes: 4 additions & 1 deletion tests/api/projects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,10 @@ suite("examples", () => {
});
fail("Compilation timeout Error expected.");
} catch (e) {
expect(e.message).to.equal("Compilation timed out after 1 seconds");
expect(e.message).to.equal(
"Compilation timed out after 1 seconds. To allow more time, " +
"re-run with a longer --timeout (e.g. --timeout=2m, --timeout=1h)."
);
}
});

Expand Down
Loading