From ede2916c6b888748405e36037f84dabca5408179 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 27 Jun 2020 11:31:05 +0200 Subject: [PATCH] Fix lib-tests --- .../lib_tests/babashka/run_all_libtests.clj | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test-resources/lib_tests/babashka/run_all_libtests.clj b/test-resources/lib_tests/babashka/run_all_libtests.clj index e802528e..fb4d620f 100644 --- a/test-resources/lib_tests/babashka/run_all_libtests.clj +++ b/test-resources/lib_tests/babashka/run_all_libtests.clj @@ -1,6 +1,6 @@ (ns babashka.run-all-libtests - (:require [clojure.test :as t] - [clojure.java.io :as io])) + (:require [clojure.java.io :as io] + [clojure.test :as t])) (def status (atom {})) @@ -16,23 +16,25 @@ (require '[clj-http.lite.client :as client]) (require '[cheshire.core :as json]) -(prn (:status (client/get "https://www.clojure.org"))) +(prn (:status (client/get "https://www.clojure.org" {:throw-exceptions false}))) -(prn (:status (client/get "https://postman-echo.com/get?foo1=bar1&foo2=bar2"))) +(prn (:status (client/get "https://postman-echo.com/get?foo1=bar1&foo2=bar2" {:throw-exceptions false}))) -(prn (:status (client/post "https://postman-echo.com/post"))) +(prn (:status (client/post "https://postman-echo.com/post" {:throw-exceptions false}))) (prn (:status (client/post "https://postman-echo.com/post" {:body (json/generate-string {:a 1}) :headers {"X-Hasura-Role" "admin"} :content-type :json - :accept :json}))) + :accept :json + :throw-exceptions false}))) (prn (:status (client/put "https://postman-echo.com/put" {:body (json/generate-string {:a 1}) :headers {"X-Hasura-Role" "admin"} :content-type :json - :accept :json}))) + :accept :json + :throw-exceptions false}))) ;;;; spartan.spec