Skip to content

Commit

Permalink
Update app/assets/javascripts/tutor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bart Mesuere <[email protected]>
  • Loading branch information
jorg-vr and bmesuere authored Feb 13, 2024
1 parent 138eeef commit 4d1b397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/tutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function initTutor(submissionCode: string): void {
await papyros.codeRunner.stop();

Check warning on line 54 in app/assets/javascripts/tutor.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/tutor.ts#L54

Added line #L54 was not covered by tests

// wait to make sure the code runner is stopped
while (papyros.codeRunner.getState() == RunState.Stopping) {
while (papyros.codeRunner.getState() === RunState.Stopping) {
await new Promise(resolve => setTimeout(resolve, 100));

Check warning on line 58 in app/assets/javascripts/tutor.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/tutor.ts#L57-L58

Added lines #L57 - L58 were not covered by tests
}
}
Expand Down

0 comments on commit 4d1b397

Please sign in to comment.