Fix catching error in test_replication_lag

This commit is contained in:
Konstantin Knizhnik
2024-02-07 08:57:08 +02:00
parent 28475c660f
commit 32f4a56327
2 changed files with 5 additions and 3 deletions
+1 -3
View File
@@ -50,9 +50,7 @@ def test_replication_lag(neon_simple_env: NeonEnv, pg_bin: PgBin):
)
except Exception as error:
print(f"Query failed: {error}")
if not str(error).startswith(
"canceling statement due to conflict with recovery"
):
if "canceling statement due to conflict with recovery" not in str(error):
raise
t.join()