mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-03-03 14:52:21 +02:00
Update db test module error for newer libpq versions.
PostgreSQL 14 libpq throws a more detailed error, so adjust the regular expression to handle the old and the new errors.
This commit is contained in:
parent
eb98b8d2db
commit
3a37482de9
@ -701,11 +701,11 @@ testRun(void)
|
||||
|
||||
TEST_ASSIGN(result, dbGet(false, true, false), "get primary and standy");
|
||||
|
||||
hrnLogReplaceAdd("No such file or directory.*$", NULL, "NO SUCH FILE OR DIRECTORY", false);
|
||||
hrnLogReplaceAdd("(could not connect to server|connection to server on socket).*$", NULL, "PG ERROR", false);
|
||||
TEST_RESULT_LOG(
|
||||
"P00 WARN: unable to check pg-4: [DbConnectError] unable to connect to 'dbname='postgres' port=5433': error\n"
|
||||
"P00 WARN: unable to check pg-5: [DbConnectError] raised from remote-0 protocol on 'localhost':"
|
||||
" unable to connect to 'dbname='postgres' port=5432': could not connect to server: [NO SUCH FILE OR DIRECTORY]");
|
||||
" unable to connect to 'dbname='postgres' port=5432': [PG ERROR]");
|
||||
|
||||
TEST_RESULT_INT(result.primaryIdx, 3, " check primary idx");
|
||||
TEST_RESULT_BOOL(result.primary != NULL, true, " check primary");
|
||||
|
Loading…
x
Reference in New Issue
Block a user