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

Commitecd5427

Browse files
PostgresNode::source_walsender is updated [revision]
1 parent46598b4 commitecd5427

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎testgres/node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,11 @@ def source_walsender(self):
431431
where application_name = %s
432432
"""
433433

434-
ifnotself.master:
434+
ifself.masterisNone:
435435
raiseTestgresException("Node doesn't have a master")
436436

437+
asserttype(self.master)==PostgresNode
438+
437439
# master should be on the same host
438440
assertself.master.host==self.host
439441

‎tests/test_testgres_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ def LOCAL__check_auxiliary_pids__multiple_attempts(
348348
assert (con.pid>0)
349349

350350
withmaster.replicate().start()asreplica:
351+
asserttype(replica)==PostgresNode
351352

352353
# test __str__ method
353354
str(master.child_processes[0])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp