Skip to content

Commit 1ff9e85

Browse files
committed
Only increment incomplete test seconds once
1 parent cfc68ac commit 1ff9e85

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/ts/test/test-logic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,8 @@ export function fail(reason: string): void {
13231323
TestInput.pushErrorToHistory();
13241324
TestInput.pushAfkToHistory();
13251325
void finish(true);
1326-
if (!Config.resultSaving) return;
1326+
// When test is repeated we already do the rest of this function in finish.
1327+
if (!Config.resultSaving || TestState.isRepeated) return;
13271328
const testSeconds = TestStats.calculateTestSeconds(performance.now());
13281329
const afkseconds = TestStats.calculateAfkSeconds(testSeconds);
13291330
let tt = Numbers.roundTo2(testSeconds - afkseconds);

0 commit comments

Comments
 (0)