Skip to content

Commit

Permalink
add endTiming to the end of an exam unit test
Browse files Browse the repository at this point in the history
The headless test runner seemed to be waiting for the timer to end.
  • Loading branch information
christianp committed Nov 21, 2024
1 parent 0cd1144 commit 9557f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/parts/part-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3192,6 +3192,8 @@ return new Numbas.jme.types.TPromise(promise);
await submit_part(p1);

assert.equal(e.score,1);

e.endTiming();
},

async function(data, results, scorm) {
Expand Down

0 comments on commit 9557f2b

Please sign in to comment.