git - make integration tests agnostic to file watcher issues (#136933)

This commit is contained in:
Benjamin Pasero 2021-11-11 07:50:07 +01:00 committed by GitHub
parent 3a79384dbf
commit fb48ad43fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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