Skip to content

Commit

Permalink
Don't shutdown server until we're done with the starting phase
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Nov 4, 2024
1 parent 014b956 commit 8b56ca7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('incompatible_cluster_routing_allocation', () => {
await root.preboot();
await root.setup();

root.start().catch(() => {
const startPromise = root.start().catch(() => {
// Silent catch because the test might be done and call shutdown before starting is completed, causing unwanted thrown errors.
});

Expand Down Expand Up @@ -165,6 +165,7 @@ describe('incompatible_cluster_routing_allocation', () => {
{ retryAttempts: 100, retryDelayMs: 500 }
);

await startPromise; // Wait for start phase to complete before shutting down
await root.shutdown();
});
});

0 comments on commit 8b56ca7

Please sign in to comment.