Skip to content

Commit

Permalink
Fix flaky test by increasing sleep time
Browse files Browse the repository at this point in the history
This test was failing on macOS because the sleep time was too short. Increasing it to 500ms should be enough to make the test pass.
  • Loading branch information
jpogran committed Dec 16, 2024
1 parent 9126324 commit 52b5cef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/INTERNAL-20241216-104206.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: INTERNAL
body: Fix flaky ui tests by increasing sleep time
time: 2024-12-16T10:42:06.856418-05:00
custom:
Issue: "1925"
Repository: vscode-terraform
2 changes: 1 addition & 1 deletion src/test/e2e/specs/views/hcp.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('HCP tree view tests', () => {
expect(await runTree?.isDisplayed()).is.true;

// wait for the run to load otherwise the test will fail
await VSBrowser.instance.driver.sleep(100);
await VSBrowser.instance.driver.sleep(500);

const runItem = await runTree.findItem('Run 1');
expect(runItem).not.undefined;
Expand Down

0 comments on commit 52b5cef

Please sign in to comment.