File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments