Skip to content

Commit

Permalink
TINY-10708: Always update HUD on test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
danoaky-tiny committed Mar 8, 2024
1 parent 092d2c5 commit 194b6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/server/src/main/ts/bedrock/server/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const create = (stickyFirstSession: boolean, singleTimeout: number, overa
const shouldUpdateHud = (session: TestSession): boolean => {
if (!outputToHud) return false;
if (stickyFirstSession && (timeoutError || session.id !== stickyId)) return false;
if (!Env.IS_CI || session.done) return true;
if (!Env.IS_CI || session.done || !session.results.at(-1)?.passed) return true;
// Only update the HUD at 10% intervals on remote:
return session.results.length % Math.round(session.totalTests * 0.1) === 0;
};
Expand Down

0 comments on commit 194b6fa

Please sign in to comment.