Don't throw if cleanup drop fails (#11405)

This commit is contained in:
Charles Gagnon
2020-07-17 10:59:13 -07:00
committed by GitHub
parent 42fa5c3275
commit 4594943b53
4 changed files with 30 additions and 8 deletions

View File

@@ -156,8 +156,8 @@ suite('Schema compare integration test suite', () => {
await fs.promises.unlink(filepath);
}
finally {
await utils.deleteDB(server, sourceDB, ownerUri);
await utils.deleteDB(server, targetDB, ownerUri);
await utils.tryDeleteDB(server, sourceDB, ownerUri);
await utils.tryDeleteDB(server, targetDB, ownerUri);
}
});
test('Schema compare dacpac to database comparison, script generation, and scmp', async function () {
@@ -224,7 +224,7 @@ suite('Schema compare integration test suite', () => {
assert(openScmpResult.targetEndpointInfo.databaseName === target.databaseName, `Expected: target database to be ${target.databaseName}, Actual: ${openScmpResult.targetEndpointInfo.databaseName}`);
}
finally {
await utils.deleteDB(server, targetDB, ownerUri);
await utils.tryDeleteDB(server, targetDB, ownerUri);
}
});
test('Schema compare dacpac to dacpac comparison with include exclude', async function () {