Skip to content

Commit

Permalink
fix: double wait time when deleting dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 4, 2021
1 parent 2b9bbfb commit 96d4388
Show file tree
Hide file tree
Showing 2 changed files with 462 additions and 430 deletions.
2 changes: 1 addition & 1 deletion src/testSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class TestSession extends AsyncOptionalCreatable<TestSessionOptions> {
this.debug(`Deleting test session dir: ${this.dir}`);
// Processes can hang on to files within the test session dir, preventing
// removal so we wait a bit before trying.
await this.sleep(Duration.seconds(2));
await this.sleep(Duration.seconds(4));
const rv = shell.rm('-rf', this.dir);
if (rv.code !== 0) {
throw Error(`Deleting the test session failed due to: ${rv.stderr}`);
Expand Down
Loading

0 comments on commit 96d4388

Please sign in to comment.