X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=4ca9664aa8a390a7592982b27f35a9a323f23d46;hp=8ca8793e8043184485ade748d0fa3d2baf6ae995;hb=HEAD;hpb=768d8a8ddc93afddc736df5b1442ad5b326f3c4e diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index 8ca8793..4ca9664 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -9,10 +9,15 @@ echo "Test\n"; 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); -$c->execAsync("SELECT pg_sleep(2)"); +$c->execAsync("SELECT pg_sleep(10)"); $x->cancel();