Skip to content

Commit

Permalink
try to fix action failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 committed May 28, 2022
1 parent 58a0692 commit faee6cf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/__tests__/core/workspaceFolder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ describe('WorkspaceFolderController', () => {
updateConfiguration('workspace.bottomUpFiletypes', ['vim'], [])
let root = path.join(os.tmpdir(), 'a')
let dir = path.join(root, '.vim')
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {recursive: true})
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, {recursive: true})
await helper.wait(30)
}
let file = path.join(dir, 'foo')
await nvim.command(`edit ${file}`)
await nvim.command('setf vim')
Expand All @@ -243,7 +246,10 @@ describe('WorkspaceFolderController', () => {
updateConfiguration('workspace.bottomUpFiletypes', ['*'], [])
let root = path.join(os.tmpdir(), 'a')
let dir = path.join(root, '.vim')
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {recursive: true})
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, {recursive: true})
await helper.wait(30)
}
let file = path.join(dir, 'foo')
await nvim.command(`edit ${file}`)
let doc = await workspace.document
Expand Down

0 comments on commit faee6cf

Please sign in to comment.