Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46598b4 commit ecd5427Copy full SHA for ecd5427
testgres/node.py
@@ -431,9 +431,11 @@ def source_walsender(self):
431
where application_name = %s
432
"""
433
434
- if not self.master:
+ if self.master is None:
435
raise TestgresException("Node doesn't have a master")
436
437
+ assert type(self.master) == PostgresNode
438
+
439
# master should be on the same host
440
assert self.master.host == self.host
441
tests/test_testgres_common.py
@@ -348,6 +348,7 @@ def LOCAL__check_auxiliary_pids__multiple_attempts(
348
assert (con.pid > 0)
349
350
with master.replicate().start() as replica:
351
+ assert type(replica) == PostgresNode
352
353
# test __str__ method
354
str(master.child_processes[0])
0 commit comments