remove change partition key e2e tests & delete all sql databases regardless of when created

This commit is contained in:
Asier Isayas
2026-01-02 12:22:12 -05:00
parent 09bec54a55
commit b94e9a1eaa
2 changed files with 81 additions and 86 deletions

View File

@@ -85,12 +85,7 @@ async function main() {
// }
const sqlDatabasesToDelete = sqlDatabases.map(async (database) => {
const timestamp = Number(database.resource._ts) * 1000;
if (timestamp && timestamp < thirtyMinutesAgo) {
await deleteWithRetry(client, database, account.name);
} else {
console.log(`SKIPPED: ${account.name} | ${database.name} | Age: ${friendlyTime(Date.now() - timestamp)}`);
}
await deleteWithRetry(client, database, account.name);
});
await Promise.all(sqlDatabasesToDelete);