Skip to content

Commit

Permalink
Test command now obeys the keepAlive setting on errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinbrown committed May 7, 2019
1 parent 505212d commit 0d4d5c8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/cli/lamington-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ const run = async () => {
};

run().catch(async error => {
if (await eosIsReady()) {
stopContainer().then(() => {
//console.log(error)
process.exit(1);
});
} else {
console.log(error);
process.exitCode = 1;
console.log(error);

if (!ConfigManager.keepAlive && (await eosIsReady())) {
await stopContainer();
}
});

0 comments on commit 0d4d5c8

Please sign in to comment.