We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3baf10 commit 6c2f02eCopy full SHA for 6c2f02e
test/run_migration_test
@@ -56,8 +56,7 @@ assert_migration_succeeds ()
56
# test case suggested in https://github.com/sclorg/postgresql-container/pull/521
57
assert_migration_fails()
58
{
59
- docker run --rm -e POSTGRESQL_MIGRATION_REMOTE_HOST=invalid-host-name -e POSTGRESQL_MIGRATION_ADMIN_PASSWORD=password "$image_to" run-postgresql --version
60
- if [ $? -eq 0 ] ; then
+ if docker run --rm -e POSTGRESQL_MIGRATION_REMOTE_HOST=invalid-host-name -e POSTGRESQL_MIGRATION_ADMIN_PASSWORD=password "$image_to" run-postgresql --version ; then
61
info "The image exited with 0 despite migration obviously did not work, that's a problem."
62
return 1
63
else
0 commit comments