Skip to content

Commit 2dc0659

Browse files
committed
Refactor test for test option
1 parent 9652bb9 commit 2dc0659

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: tests/test_simple.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,11 @@ def test_pg_ctl_wait_option(self):
379379
while True:
380380
try:
381381
node.stop(wait=False)
382-
except ExecUtilException:
383-
# it's ok to break here since node could be not
384-
# started yet
385-
continue
386-
else:
387382
break
383+
except ExecUtilException:
384+
# it's ok to get this exception here since node
385+
# could be not started yet
386+
pass
388387

389388
def test_replicate(self):
390389
with get_new_node() as node:

0 commit comments

Comments
 (0)