mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-03 14:01:57 +02:00
fix ptrack
This commit is contained in:
parent
6f4d2f60e1
commit
3ba30a9742
@ -442,7 +442,7 @@ class PtrackBackupTest(ProbackupTest, unittest.TestCase):
|
|||||||
# we should die here because exception is what we expect to happen
|
# we should die here because exception is what we expect to happen
|
||||||
self.assertEqual(1, 0, "Expecting Error because we are connecting to deleted database.\n Output: {0} \n CMD: {1}".format(
|
self.assertEqual(1, 0, "Expecting Error because we are connecting to deleted database.\n Output: {0} \n CMD: {1}".format(
|
||||||
repr(self.output), self.cmd))
|
repr(self.output), self.cmd))
|
||||||
except QueryException as e:
|
except Exception as e:
|
||||||
self.assertTrue('FATAL: database "db1" does not exist' in repr(e),
|
self.assertTrue('FATAL: database "db1" does not exist' in repr(e),
|
||||||
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e), self.cmd))
|
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e), self.cmd))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user