Use target_session_attrs only when multiple hosts in standby_cluster (#3040)

Actually comment in the code was already saying that, but on practice it didn't happen.

It should help #3039
This commit is contained in:
Alexander Kukushkin
2024-04-02 11:59:57 +02:00
committed by GitHub
parent ceb2965ab8
commit d7454f7bcd
7 changed files with 87 additions and 63 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ class TestRewind(BaseTestPostgresql):
self.r.rewind_or_reinitialize_needed_and_possible(self.leader)
@patch.object(CancellableSubprocess, 'call', mock_cancellable_call)
@patch.object(Postgresql, 'checkpoint', side_effect=['', '1'],)
@patch.object(Postgresql, 'get_guc_value', Mock(return_value=''))
@patch.object(Postgresql, 'checkpoint', side_effect=['', '1'])
@patch.object(Postgresql, 'stop', Mock(return_value=False))
@patch.object(Postgresql, 'start', Mock())
def test_execute(self, mock_checkpoint):