diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-01-20 15:03:27 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-01-20 15:03:35 -0300 |
commit | a600ee9e3fcc43d4497d18d837f1e86148ca7580 (patch) | |
tree | d8d6272b5c3588cb97d31cf8d2e252e538534b1e /src/test/modules/commit_ts | |
parent | 0502e854640bd024f349c0df46b7dd6812b8c05c (diff) | |
download | postgresql-a600ee9e3fcc43d4497d18d837f1e86148ca7580.tar.gz postgresql-a600ee9e3fcc43d4497d18d837f1e86148ca7580.zip |
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
Diffstat (limited to 'src/test/modules/commit_ts')
-rw-r--r-- | src/test/modules/commit_ts/t/004_restart.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/modules/commit_ts/t/004_restart.pl b/src/test/modules/commit_ts/t/004_restart.pl index 32be07c7414..a0a24971d20 100644 --- a/src/test/modules/commit_ts/t/004_restart.pl +++ b/src/test/modules/commit_ts/t/004_restart.pl @@ -54,7 +54,7 @@ my $xid = $node_master->safe_psql( my $before_restart_ts = $node_master->safe_psql('postgres', 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'); $node_master->stop('immediate'); |