Skip to content

Commit ecd5427

Browse files
PostgresNode::source_walsender is updated [revision]
1 parent 46598b4 commit ecd5427

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-
if not self.master:
434+
if self.master is None:
435435
raise TestgresException("Node doesn't have a master")
436436

437+
assert type(self.master) == PostgresNode
438+
437439
# master should be on the same host
438440
assert self.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
with master.replicate().start() as replica:
351+
assert type(replica) == PostgresNode
351352

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy