X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=a5bf4f35efd279c4eaf487d5f9552ee555322616;hb=c3b02a2567ab77ec4fb829d3dac6437afdcbc76e;hp=708591f30f01a56475321bab8453e770aa234cf1;hpb=1b5358df410e66224c7e8251d286134b0f3f59d3;p=m6w6%2Fext-pq diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index 708591f..a5bf4f3 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -9,10 +9,11 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); +$c->exec("SET lc_messages TO 'C'"); $x = new pq\Cancel($c); -$c->execAsync("SELECT pg_sleep(2)"); +$c->execAsync("SELECT pg_sleep(10)"); $x->cancel(); @@ -64,7 +65,7 @@ object(pq\Result)#%d (9) { ["source_file"]=> string(10) "postgres.c" ["source_line"]=> - string(4) "2988" + string(4) "%d" ["source_function"]=> string(17) "ProcessInterrupts" }