Fix git integration test failure (#20050)

This commit is contained in:
Charles Gagnon
2022-07-15 11:19:47 -07:00
committed by GitHub
parent 7e872b90cb
commit e40459de2a

View File

@@ -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);