Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
punit-naik committed Oct 8, 2021
1 parent d77632f commit 6f6b873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/org/clojars/punit_naik/sqles/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
(core/run-query {:url (config/es-server)})]
(when status
(is (pos-int? status))
(if (= status 200)
(when (= status 200)
(is (re-matches #"\d+\.\d+\.\d+" number))
(is (= tagline "You Know, for Search")))))
(let [{:keys [status] {error-msg :error} :body} (core/run-query {:url "http://localhost:9200" :method :post})]
(if (and (not (nil? status)) (= status 405))
(when (and (not (nil? status)) (= status 405))
(is (= status 405))
(is (= error-msg "Incorrect HTTP method for uri [/] and method [POST], allowed: [GET, HEAD, DELETE]"))))
(is (= (core/run-query {:url "http://xyz.pqr"}) {}))
Expand Down

0 comments on commit 6f6b873

Please sign in to comment.