Skip to content

Commit

Permalink
Stop waiting for timeout in UI tests with faulty config
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Dec 11, 2024
1 parent 9a38d7f commit c2a568c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/tests/util/isolation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export const test = base.extend<CustomTestFixtures, CustomWorkerFixtures>({
["serve", "--config", configPath],
// { stdio: "inherit" }
);
tobiraProcess.addListener("exit", code => {
throw new Error(`Failed to start Tobira process (exit code ${code}). `
+ 'Invalid config? (Hint: try setting stdio: "inherit" in isolation.ts)');
});
await waitPort({ port, interval: 10, output: "silent" });


Expand Down

0 comments on commit c2a568c

Please sign in to comment.