Skip to content

Commit 9bc5fda

Browse files
committed
test: update 404 sanity test
Hitting the real world in tests can stop working when the real world changes. Hit httpbin.org instead. Can adjust if httpbin.org turns out to be not reliable.
1 parent d186fd3 commit 9bc5fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/clj_http/lite/client_sanity_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:throw-exceptions false})))))
2727

2828
(deftest exception-test
29-
(try (client/get "https://site.com/broken")
29+
(try (client/get "https://httpbin.org/status/404")
3030
(is false "should not reach here")
3131
(catch Exception e
3232
(is (:headers (ex-data e))))))

0 commit comments

Comments
 (0)