Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44dce6f

Browse files
author
Maksim Milyutin
committed
Fix assert condition in test_concurrent_detach case
1 parenteba6fb0 commit44dce6f

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)

[8]ページ先頭

©2009-2025 Movatter.jp