mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
pg_amcheck: Fix test failure on Windows with non-existing role
For SSPI auth extra users need to be explicitly allowed, or we get "SSPI authentication failed" instead of the expected "role does not exist" error. This report also means that the test has never worked on Windows since its introduction in9706092839
, because it has always bumped on an authentication failure rather than an error about the role not existing. Oversight ineef4a33f62
, that has added a pattern check on the error generated by the command. Per report from Tom Lane, via buildfarm member drongo. Author: Dagfinn Ilmari Mannsåker Reviewed-by: Andrew Dunstan Discussion: https://postgr.es/m/379085.1737734611@sss.pgh.pa.us
This commit is contained in:
@ -11,7 +11,7 @@ use Test::More;
|
||||
# Test set-up
|
||||
my ($node, $port);
|
||||
$node = PostgreSQL::Test::Cluster->new('test');
|
||||
$node->init;
|
||||
$node->init(auth_extra => [ '--create-role' => 'no_such_user' ]);
|
||||
$node->start;
|
||||
$port = $node->port;
|
||||
|
||||
|
Reference in New Issue
Block a user