Skip to content

Commit

Permalink
Wait 2min before shutting down local dynamodb to verify it works by e…
Browse files Browse the repository at this point in the history
…xecuting ` aws dynamodb list-tables --endpoint-url http://localhost:8000`
  • Loading branch information
WtfJoke committed Sep 4, 2024
1 parent 6c4a302 commit dfc9211
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ DynamoDbLocal.launch(8000)
console.log('PID created: ', ChildProcess.pid);

//do your tests

DynamoDbLocal.stop(8000);
console.log('finished');
// sleep 2 minutes
setTimeout(function () {
console.log('stopping');
DynamoDbLocal.stop(8000);
console.log('finished');
}, 120000);

});

0 comments on commit dfc9211

Please sign in to comment.