Skip to content

Commit

Permalink
Fix tap test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamguo0 committed Dec 18, 2023
1 parent 5726f65 commit bc84b55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/t/004_pg_tle_clientauth.pl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
['psql', '-c', 'select;'],
"can still connect if database is in pgtle.clientauth_databases_to_skip");

$node->psql('postgres', qq[SELECT pgtle.register_feature('reject_testuser', 'clientauth'))]);
$node->psql('postgres', qq[SELECT pgtle.register_feature('reject_testuser', 'clientauth')]);

### 12. Users cannot log in when pgtle.enable_clientauth = 'require' and pg_tle is not installed on pgtle.clientauth_database_name
$node->psql('postgres', qq[DROP EXTENSION pg_tle CASCADE;]);
Expand Down Expand Up @@ -235,7 +235,9 @@
### 14. Database does not come up if clientauth workers fail to start
$node->append_conf('postgresql.conf', qq(pgtle.clientauth_num_parallel_workers = 64));
$node->append_conf('postgresql.conf', qq(max_worker_processes = 63));
like($node->restart(fail_ok => 1), qr/^0$/); # $node->restart returns 0 on failure
$node->command_fails(
[ 'pg_ctl', '-D', $node->data_dir, '-l', $node->logfile, 'restart' ],
"postmaster does not start up if clientauth workers fail to start");
$node->append_conf('postgresql.conf', qq(pgtle.clientauth_num_parallel_workers = 60));
$node->append_conf('postgresql.conf', qq(max_worker_processes = 63));
$node->restart;
Expand Down

0 comments on commit bc84b55

Please sign in to comment.