Skip to content

Commit

Permalink
Merge pull request #109 from birtles/fix-non-default-port
Browse files Browse the repository at this point in the history
fix: Use configured port, if provided
  • Loading branch information
vladgolubev authored Aug 26, 2021
2 parents a9ef89e + 74cf775 commit 6e483ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = async function () {
try {
const {TableNames: tableNames} = await Promise.race([
dynamoDB.listTables({}),
waitForLocalhost(DEFAULT_PORT)
waitForLocalhost(port)
]);
await deleteTables(dynamoDB, tableNames); // cleanup leftovers
} catch (err) {
Expand All @@ -54,7 +54,7 @@ module.exports = async function () {

global.__DYNAMODB__ = await DynamoDbLocal.launch(port, null, options);

await waitForLocalhost(DEFAULT_PORT);
await waitForLocalhost(port);
}
}

Expand Down

0 comments on commit 6e483ac

Please sign in to comment.