Skip to content

Commit

Permalink
test(bats): add fatality check
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Dec 15, 2023
1 parent 2a801f3 commit a145bb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/bats/01-connect-spec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
[ "$result" -eq 0 ]
}

@test "no fatalities in logs" {
result=$(docker logs exist | grep -ow -c 'FATAL' || true)
[ "$result" -eq 0 ]
}

# Only appears on boot with non empty autodeploy directory
@test "logs contain repo.log output" {
result=$(docker logs exist-ci | grep -o -m 1 'Deployment.java')
Expand Down

0 comments on commit a145bb5

Please sign in to comment.