wait longer for sync

This commit is contained in:
Felix Kunde 2021-07-26 10:38:25 +02:00
parent fb47f64683
commit 330a0b0bd9
1 changed files with 2 additions and 2 deletions

View File

@ -1199,7 +1199,7 @@ class EndToEndTestCase(unittest.TestCase):
patch_resync_config = { patch_resync_config = {
"data": { "data": {
"pod_label_wait_timeout": "2s", "pod_label_wait_timeout": "2s",
"resync_period": "20s", "resync_period": "1m",
} }
} }
@ -1232,7 +1232,7 @@ class EndToEndTestCase(unittest.TestCase):
k8s.wait_for_pod_start('spilo-role=replica,' + cluster_label) k8s.wait_for_pod_start('spilo-role=replica,' + cluster_label)
# status should again be "SyncFailed" but turn into "Running" on the next sync # status should again be "SyncFailed" but turn into "Running" on the next sync
time.sleep(20) time.sleep(60)
print('Operator log: {}'.format(k8s.get_operator_log())) print('Operator log: {}'.format(k8s.get_operator_log()))
self.eventuallyEqual(lambda: k8s.pg_get_status(), "Running", "Expected running cluster after two syncs") self.eventuallyEqual(lambda: k8s.pg_get_status(), "Running", "Expected running cluster after two syncs")