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

Commit79b8755

Browse files
committed
fix test_checkdb_checkunique
1 parentdc9cfb8 commit79b8755

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎tests/checkdb_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,14 @@ def test_checkdb_checkunique(self):
537537
repr(e.message),self.cmd))
538538

539539
self.assertIn(
540-
"Amcheck failed in database 'postgres' for index: 'public.bttest_unique_idx': ERROR: index\"bttest_unique_idx\" is corrupted. There are tuples violating UNIQUE constraint",
540+
"Amcheck failed in database 'postgres' for index: 'public.bttest_unique_idx'",
541541
e.message)
542542

543+
self.assertRegex(
544+
e.message,
545+
r"ERROR:[^\n]*(violating UNIQUE constraint|uniqueness is violated)"
546+
)
547+
543548
# Clean after yourself
544549
node.stop()
545550

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp