Skip to content

Commit 3093bb9

Browse files
committed
tests: minor fix
1 parent 58b2a55 commit 3093bb9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/replica.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ def test_replica_promote_1(self):
10031003
backup_dir, 'wal', 'master', '000000010000000000000004')
10041004

10051005
wal_file_partial = os.path.join(
1006-
backup_dir, 'wal', 'master', '000000010000000000000004.part')
1006+
backup_dir, 'wal', 'master', '000000010000000000000004.partial')
10071007

10081008
self.assertFalse(os.path.exists(wal_file))
10091009

@@ -1016,10 +1016,14 @@ def test_replica_promote_1(self):
10161016

10171017
# sleep to be sure, that any partial timeout is expired
10181018
sleep(70)
1019+
1020+
self.assertTrue(
1021+
os.path.exists(wal_file_partial),
1022+
"File {0} disappeared".format(wal_file))
10191023

10201024
self.assertTrue(
1021-
os.path.exists(wal_file_partial,
1022-
"File {0} disappeared".format(wal_file_partial)))
1025+
os.path.exists(wal_file_partial),
1026+
"File {0} disappeared".format(wal_file_partial))
10231027

10241028
# Clean after yourself
10251029
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)