Skip to content

Commit 34c9c59

Browse files
committed
Await screenshots.
1 parent 2f129c7 commit 34c9c59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • rascal-vscode-extension/src/test/vscode-suite

rascal-vscode-extension/src/test/vscode-suite/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export class IDEOperations {
291291
await new Workbench().executeCommand("workbench.action.revertAndCloseActiveEditor");
292292
} catch (ex) {
293293
const title = ignoreFails(new TextEditor().getTitle()) ?? 'unknown';
294-
this.screenshot(`revert of ${title} failed ` + tryCount);
294+
await this.screenshot(`revert of ${title} failed ` + tryCount);
295295
console.log(`Revert of ${title} failed, but we ignore it`, ex);
296296
}
297297
try {
@@ -307,7 +307,7 @@ export class IDEOperations {
307307
return !(await new TextEditor().isDirty());
308308
}
309309
catch (ignored) {
310-
this.screenshot("open editor check failed " + tryCount);
310+
await this.screenshot("open editor check failed " + tryCount);
311311
console.log("Open editor dirty check failed: ", ignored);
312312
return false;
313313

0 commit comments

Comments
 (0)