We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a778e00 commit 1e9a706Copy full SHA for 1e9a706
setup.js
@@ -31,7 +31,10 @@ module.exports = async function () {
31
global.__DYNAMODB_CLIENT__ = dynamoDB;
32
33
try {
34
- const {TableNames: tableNames} = await dynamoDB.listTables().promise();
+ const {TableNames: tableNames} = await Promise.race([
35
+ dynamoDB.listTables().promise(),
36
+ new Promise(resolve => setTimeout(resolve, 1000))
37
+ ]);
38
await deleteTables(dynamoDB, tableNames); // cleanup leftovers
39
} catch (err) {
40
// eslint-disable-next-line no-console
0 commit comments