Skip to content

Commit

Permalink
git - make integration tests agnostic to file watcher issues (#136933)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Nov 11, 2021
1 parent 3a79384 commit fb48ad4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/git/src/test/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ suite('git smoke test', function () {
git = ext!.exports.getAPI(1);

if (git.repositories.length === 0) {
await eventToPromise(git.onDidOpenRepository);
const onDidOpenRepository = eventToPromise(git.onDidOpenRepository);
await commands.executeCommand('git.openRepository', cwd);
await onDidOpenRepository;
}

assert.strictEqual(git.repositories.length, 1);
Expand Down

0 comments on commit fb48ad4

Please sign in to comment.