Skip to content

Commit 6e483ac

Browse files
authored
Merge pull request #109 from birtles/fix-non-default-port
fix: Use configured port, if provided
2 parents a9ef89e + 74cf775 commit 6e483ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = async function () {
3838
try {
3939
const {TableNames: tableNames} = await Promise.race([
4040
dynamoDB.listTables({}),
41-
waitForLocalhost(DEFAULT_PORT)
41+
waitForLocalhost(port)
4242
]);
4343
await deleteTables(dynamoDB, tableNames); // cleanup leftovers
4444
} catch (err) {
@@ -54,7 +54,7 @@ module.exports = async function () {
5454

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

57-
await waitForLocalhost(DEFAULT_PORT);
57+
await waitForLocalhost(port);
5858
}
5959
}
6060

0 commit comments

Comments
 (0)