Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9652bb9

Browse files
committed
Fix test for wait option
1 parent404acfb commit9652bb9

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

‎testgres/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def start(self, params=[], wait=True):
570570
571571
Args:
572572
params: additional arguments for pg_ctl.
573-
wait: wait until operation completes
573+
wait: wait until operation completes.
574574
575575
Returns:
576576
This instance of :class:`.PostgresNode`.
@@ -601,7 +601,7 @@ def stop(self, params=[], wait=True):
601601
602602
Args:
603603
params: additional arguments for pg_ctl.
604-
wait: wait until operation completes
604+
wait: wait until operation completes.
605605
606606
Returns:
607607
This instance of :class:`.PostgresNode`.

‎tests/test_simple.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,15 @@ def test_backup_wrong_xlog_method(self):
376376
deftest_pg_ctl_wait_option(self):
377377
withget_new_node()asnode:
378378
node.init().start(wait=False)
379-
node.stop(wait=False)
379+
whileTrue:
380+
try:
381+
node.stop(wait=False)
382+
exceptExecUtilException:
383+
# it's ok to break here since node could be not
384+
# started yet
385+
continue
386+
else:
387+
break
380388

381389
deftest_replicate(self):
382390
withget_new_node()asnode:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp