From 76e64a0a6074927832c2f77d8ee45f253179dfad Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 24 Sep 2020 12:16:37 +0200 Subject: [PATCH] tests: set lc_messages to C for tests checking errors --- tests/cancel001.phpt | 1 + tests/trans001.phpt | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index 2cc5896..a5bf4f3 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -9,6 +9,7 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); +$c->exec("SET lc_messages TO 'C'"); $x = new pq\Cancel($c); diff --git a/tests/trans001.phpt b/tests/trans001.phpt index 1dc97ba..42e8f9e 100644 --- a/tests/trans001.phpt +++ b/tests/trans001.phpt @@ -11,6 +11,7 @@ include "_setup.inc"; $c = new pq\Connection(PQ_DSN); $c->exec("DROP TABLE IF EXISTS test CASCADE"); $c->exec("SET client_min_messages TO NOTICE"); +$c->exec("SET lc_messages TO 'C'"); $c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) { echo "Got notice: $notice\n"; }); -- 2.30.2