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

Commit58cd26f

Browse files
committed
tests: slow_start() fix
1 parent4d8b6f5 commit58cd26f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎tests/helpers/ptrack_helpers.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,15 @@ def slow_start(self, replica=False):
124124
# "SELECT not pg_is_in_recovery()",
125125
# suppress={testgres.NodeConnection})
126126
ifreplica:
127-
query='SELECT not pg_is_in_recovery()'
128-
else:
129127
query='SELECT pg_is_in_recovery()'
128+
else:
129+
query='SELECT not pg_is_in_recovery()'
130130

131131
self.start()
132132
whileTrue:
133133
try:
134-
self.safe_psql(
135-
'postgres',
136-
query)
137-
break
134+
ifself.safe_psql('postgres',query)=='t\n':
135+
break
138136
excepttestgres.QueryExceptionase:
139137
if'database system is starting up'ine[0]:
140138
continue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp