Skip to content

Commit

Permalink
add more wait conditions and increase timeout to try and get tests pa…
Browse files Browse the repository at this point in the history
…ssing on windows
  • Loading branch information
chrissimon-au committed Nov 27, 2023
1 parent 138ec6d commit 7927d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vscode/contextive/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Mocha = require('mocha');
const glob = require('glob');

function getMochaOpts() {
const defaultOpts = {timeout: 5000};
const defaultOpts = {timeout: 25000};
if (process.env.MOCHA_FGREP) {
return {
fgrep: process.env.MOCHA_FGREP,
Expand Down
4 changes: 4 additions & 0 deletions src/vscode/contextive/test/single-root/Initialize.test.fs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ let tests =

do! VsCodeCommands.initialize () |> Promise.Ignore

do! waitFor <| documentIsOpen fullPath

let editor = findUriInVisibleEditors fullPath

do! closeDocument fullPath |> Promise.Ignore
Expand All @@ -40,6 +42,8 @@ let tests =

let fullPath = getFullPathFromConfig ()

do! waitFor <| documentIsOpen fullPath

let editor = findUriInVisibleEditors fullPath

do! closeDocument fullPath |> Promise.Ignore
Expand Down

0 comments on commit 7927d21

Please sign in to comment.