Skip to content

Commit

Permalink
Improve test by just checking the count
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed May 28, 2020
1 parent 5369405 commit 0b59c3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cli/scripts/count_running_docker_containers.sh
Expand Up @@ -8,4 +8,4 @@ docker ps \
-f name="$PROJECT_NAME_cardano-db-sync-extended" \
-f name="$PROJECT_NAME_hasura" \
-f name="$PROJECT_NAME_cardano-graphql" \
--format '{{.Names}}' | tee >(wc -l)
--format '{{.Names}}' | wc -l
10 changes: 0 additions & 10 deletions cli/src/__test__/__snapshots__/smoke.test.ts.snap
Expand Up @@ -20,13 +20,3 @@ Commands:
help [command] display help for command
"
`;

exports[`Smoke Test init Can initialise a stack 1`] = `
"test_hasura_1
test_cardano-db-sync-extended_1
test_cardano-node_1
test_postgres_1
test_cardano-graphql_1
5
"
`;
2 changes: 1 addition & 1 deletion cli/src/__test__/smoke.test.ts
Expand Up @@ -49,7 +49,7 @@ describe('Smoke Test', () => {
if (error) return done(error)
exec('./scripts/count_running_docker_containers.sh test', (error, stdout) => {
if (error) return done(error)
expect(stdout.toString()).toMatchSnapshot()
expect(parseInt(stdout.toString())).toBe(5)
done()
})
})
Expand Down

0 comments on commit 0b59c3d

Please sign in to comment.