Skip to content

Commit fb48ad4

Browse files
authored
git - make integration tests agnostic to file watcher issues (microsoft#136933)
1 parent 3a79384 commit fb48ad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/git/src/test/smoke.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ suite('git smoke test', function () {
5656
git = ext!.exports.getAPI(1);
5757

5858
if (git.repositories.length === 0) {
59-
await eventToPromise(git.onDidOpenRepository);
59+
const onDidOpenRepository = eventToPromise(git.onDidOpenRepository);
60+
await commands.executeCommand('git.openRepository', cwd);
61+
await onDidOpenRepository;
6062
}
6163

6264
assert.strictEqual(git.repositories.length, 1);

0 commit comments

Comments
 (0)