[arch-commits] Commit in postgrest/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 19 14:34:36 UTC 2021


    Date: Thursday, August 19, 2021 @ 14:34:36
  Author: felixonmars
Revision: 1003838

fix tests

Modified:
  postgrest/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-19 14:34:23 UTC (rev 1003837)
+++ PKGBUILD	2021-08-19 14:34:36 UTC (rev 1003838)
@@ -49,11 +49,9 @@
     cd $pkgname-$pkgver
 
     eval $(pifpaf run postgresql --host 127.0.0.1)
-    createdb postgrest_test
+    createuser -s postgrest_test
+    POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://$USER@localhost" postgrest_test) runhaskell Setup test
 
-    # TODO: user authentication issue?
-    POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://$USER@localhost" postgrest_test) runhaskell Setup test || echo "Tests failed"
-
     # Disabled: uses stack
     # test/io-tests.sh
 



More information about the arch-commits mailing list