Skip to content

Commit

Permalink
DEV: CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Jul 3, 2024
1 parent 09b34bb commit 7fc5d3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 5 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ module.exports = async () => {
} else {
dynamodb = DynamoDbLocal.spawn({port: PORT})
}
await waitPort({
let result = await waitPort({
host: '0.0.0.0',
port: PORT,
timeout: 20000,
})
if (!result.open) {
throw new Error('Cannot open port: ' + PORT)
}
process.env.DYNAMODB_PID = String(dynamodb.pid)
process.env.DYNAMODB_PORT = String(PORT)

Expand Down

0 comments on commit 7fc5d3f

Please sign in to comment.