File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 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):
584584 self .stop ()
585585 break # OK
586586 except ExecUtilException :
587- pass # one more time
587+ pass # one more time
588588 except Exception :
589- break # screw this
589+ print ( 'cannot stop node {}' . format ( self . name ))
590590
591591 attempts += 1
592592
Original file line number Diff line number Diff line change @@ -214,9 +214,13 @@ def test_psql(self):
214214 _sum = node .safe_psql ('select sum(w) from horns' )
215215 self .assertEqual (_sum , b'6\n ' )
216216
217+ # check psql's default args, fails
218+ with self .assertRaises (QueryException ):
219+ node .psql ()
220+
217221 node .stop ()
218222
219- # check psql on stopped node
223+ # check psql on stopped node, fails
220224 with self .assertRaises (QueryException ):
221225 node .safe_psql ('select 1' )
222226
You can’t perform that action at this time.
0 commit comments