projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge pull request #49 from m6w6/issue-verprop
[m6w6/ext-pq]
/
tests
/
cancel001.phpt
diff --git
a/tests/cancel001.phpt
b/tests/cancel001.phpt
index 708591f30f01a56475321bab8453e770aa234cf1..4ca9664aa8a390a7592982b27f35a9a323f23d46 100644
(file)
--- a/
tests/cancel001.phpt
+++ b/
tests/cancel001.phpt
@@
-9,10
+9,15
@@
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
+try {
+ $c->exec("SET lc_messages TO 'C'");
+} catch (pq\Exception $e) {
+ // no not fail if we are not superuser
+}
$x = new pq\Cancel($c);
$x = new pq\Cancel($c);
-$c->execAsync("SELECT pg_sleep(
2
)");
+$c->execAsync("SELECT pg_sleep(
10
)");
$x->cancel();
$x->cancel();
@@
-64,7
+69,7
@@
object(pq\Result)#%d (9) {
["source_file"]=>
string(10) "postgres.c"
["source_line"]=>
["source_file"]=>
string(10) "postgres.c"
["source_line"]=>
- string(4) "
2988
"
+ string(4) "
%d
"
["source_function"]=>
string(17) "ProcessInterrupts"
}
["source_function"]=>
string(17) "ProcessInterrupts"
}