Skip to content
Snippets Groups Projects
Commit c1a95425 authored by Fujii Masao's avatar Fujii Masao
Browse files

Fix improper example of using psql() function in TAP tests documentation.

In an example of TAP test scripts, there is the test checking whether
the result of the query is expected or not. But, in previous example,
the exit code of psql instead of the query result was checked unexpectedly.

Author: Ildar Musin
parent 43c2c404
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ against them and evaluate the results. For example: ...@@ -41,7 +41,7 @@ against them and evaluate the results. For example:
$node->init; $node->init;
$node->start; $node->start;
my $ret = $node->psql('postgres', 'SELECT 1'); my $ret = $node->safe_psql('postgres', 'SELECT 1');
is($ret, '1', 'SELECT 1 returns 1'); is($ret, '1', 'SELECT 1 returns 1');
$node->stop('fast'); $node->stop('fast');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment