File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -584,9 +584,9 @@ def cleanup(self, max_attempts=3):
584
584
self .stop ()
585
585
break # OK
586
586
except ExecUtilException :
587
- pass # one more time
587
+ pass # one more time
588
588
except Exception :
589
- break # screw this
589
+ print ( 'cannot stop node {}' . format ( self . name ))
590
590
591
591
attempts += 1
592
592
Original file line number Diff line number Diff line change @@ -214,9 +214,13 @@ def test_psql(self):
214
214
_sum = node .safe_psql ('select sum(w) from horns' )
215
215
self .assertEqual (_sum , b'6\n ' )
216
216
217
+ # check psql's default args, fails
218
+ with self .assertRaises (QueryException ):
219
+ node .psql ()
220
+
217
221
node .stop ()
218
222
219
- # check psql on stopped node
223
+ # check psql on stopped node, fails
220
224
with self .assertRaises (QueryException ):
221
225
node .safe_psql ('select 1' )
222
226
You can’t perform that action at this time.
0 commit comments