mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix git integration test failure (#20050)
This commit is contained in:
@@ -56,7 +56,9 @@ suite('git smoke test', function () {
|
|||||||
git = ext!.exports.getAPI(1);
|
git = ext!.exports.getAPI(1);
|
||||||
|
|
||||||
if (git.repositories.length === 0) {
|
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);
|
assert.strictEqual(git.repositories.length, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user