mirror of
https://github.com/postgres/postgres.git
synced 2025-05-15 19:15:29 +03:00
tests: Use the right Perl operator
We were using != to compare strings, for which "ne" is the right thing. It's not clear why it works everywhere except on Pavan's machine, but it's clearly bogus anyway. Author and reporter: Pavan Deolasee Discussion: https://postgr.es/m/CABOikdPhsHM+pX8skoEY1_T0OtKdO1udzUj4VCjU5VEt+bj4eA@mail.gmail.com
This commit is contained in:
parent
0502e85464
commit
a600ee9e3f
@ -54,7 +54,7 @@ my $xid = $node_master->safe_psql(
|
|||||||
|
|
||||||
my $before_restart_ts = $node_master->safe_psql('postgres',
|
my $before_restart_ts = $node_master->safe_psql('postgres',
|
||||||
qq[SELECT pg_xact_commit_timestamp('$xid');]);
|
qq[SELECT pg_xact_commit_timestamp('$xid');]);
|
||||||
ok($before_restart_ts != '' && $before_restart_ts != 'null',
|
ok($before_restart_ts ne '' && $before_restart_ts ne 'null',
|
||||||
'commit timestamp recorded');
|
'commit timestamp recorded');
|
||||||
|
|
||||||
$node_master->stop('immediate');
|
$node_master->stop('immediate');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user