Skip to content

Commit 33bf8a0

Browse files
committed
oops false is not a keyword
1 parent 54c338d commit 33bf8a0

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

src/test/com/yetanalytics/lrs_test.clj

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,13 @@
268268
result-status]
269269
(= result-status
270270
(:status
271-
(try
272-
(curl/post
273-
"http://localhost:8080/xapi/statements"
274-
{:basic-auth ["username" "password"]
275-
:headers {"X-Experience-API-Version" version-header
276-
"Content-Type" "application/json;"}
277-
:body (json/generate-string test-statements)
278-
:throw :false})
279-
;; babashka refuses not to throw
280-
(catch Exception _
281-
{:status 400}))))
271+
(curl/post
272+
"http://localhost:8080/xapi/statements"
273+
{:basic-auth ["username" "password"]
274+
:headers {"X-Experience-API-Version" version-header
275+
"Content-Type" "application/json;"}
276+
:body (json/generate-string test-statements)
277+
:throw false})))
282278
"0.9.5" 400
283279
"1.0.0" 200
284280
"1.0.1" 200

0 commit comments

Comments
 (0)