Exemple #1
0
 def test_follow(self):
     self.p.call_nowait('on_start')
     m = RemoteMember(
         '1', {
             'restore_command': '2',
             'recovery_min_apply_delay': 3,
             'archive_cleanup_command': '4'
         })
     self.p.follow(m)
 def test_follow(self):
     self.p.call_nowait('on_start')
     m = RemoteMember(
         '1', {
             'restore_command': '2',
             'primary_slot_name': 'foo',
             'conn_kwargs': {
                 'host': 'bar'
             }
         })
     self.p.follow(m)