Skip to content

Commit 44dce6f

Browse files
author
Maksim Milyutin
committed
Fix assert condition in test_concurrent_detach case
1 parent eba6fb0 commit 44dce6f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/python/partitioning_test.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,10 +752,15 @@ def test_concurrent_detach(self):
752752

753753
# Obtain error log from inserts process
754754
inserts_errors = inserts.stderr.read()
755-
756-
self.assertIsNone(
757-
re.search("ERROR: constraint", inserts_errors),
758-
msg="Race condition between detach and concurrent inserts with append partition is expired")
755+
expected_errors = ('starting vacuum...ERROR: relation "pgbench_branches" does not exist\n'
756+
'(ignoring this error and continuing anyway)\n'
757+
'ERROR: relation "pgbench_tellers" does not exist\n'
758+
'(ignoring this error and continuing anyway)\n'
759+
'ERROR: relation "pgbench_history" does not exist\n'
760+
'(ignoring this error and continuing anyway)\n'
761+
'end.\n')
762+
self.assertEqual(inserts_errors, expected_errors,
763+
msg="Race condition between detach and concurrent inserts with append partition is expired")
759764

760765
# Stop instance and finish work
761766
node.stop()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy