From 447f0a632d28b68ce7775d9cb1ce2e388dabec8a Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 17 Jun 2021 02:39:02 +0300 Subject: [PATCH] [Issue #313] improve test coverage --- tests/restore.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/restore.py b/tests/restore.py index 8ccffa44c..cf150a5f2 100644 --- a/tests/restore.py +++ b/tests/restore.py @@ -3918,5 +3918,10 @@ def test_restore_issue_313(self): '\n Unexpected Error Message: {0}\n CMD: {1}'.format( repr(e.message), self.cmd)) + with open(os.path.join(node.logs_dir, 'postgresql.log'), 'r') as f: + self.assertIn( + "PANIC: could not read from control file: read 0 bytes", + f.read()) + # Clean after yourself self.del_test_dir(module_name, fname)