print operator log for failing test

This commit is contained in:
Felix Kunde 2021-07-26 09:49:42 +02:00
parent 4462be68b4
commit fb47f64683
1 changed files with 1 additions and 0 deletions

View File

@ -1233,6 +1233,7 @@ class EndToEndTestCase(unittest.TestCase):
# status should again be "SyncFailed" but turn into "Running" on the next sync
time.sleep(20)
print('Operator log: {}'.format(k8s.get_operator_log()))
self.eventuallyEqual(lambda: k8s.pg_get_status(), "Running", "Expected running cluster after two syncs")
# revert config changes