1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-02 09:53:24 +02:00

fix ptrack

This commit is contained in:
sfalkon 2017-11-07 13:59:22 +03:00
parent 7323456b0d
commit edfaed698d

View File

@ -443,8 +443,8 @@ class PtrackBackupTest(ProbackupTest, unittest.TestCase):
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))
except QueryException as e:
self.assertTrue('FATAL: database "db1" does not exist' in e,
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e), self.cmd))
self.assertTrue('FATAL: database "db1" does not exist' in e.args,
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e.args), self.cmd))
# Clean after yourself
self.del_test_dir(module_name, fname)