Skip to content

Instantly share code, notes, and snippets.

@scottjacobsen
Created April 27, 2016 04:01
Show Gist options
  • Save scottjacobsen/67adfee01e0da8b5eb9e273f9ee817fe to your computer and use it in GitHub Desktop.
Save scottjacobsen/67adfee01e0da8b5eb9e273f9ee817fe to your computer and use it in GitHub Desktop.
luminus test fail
(ns guestbook.test.handler
(:require [clojure.test :refer :all]
[ring.mock.request :refer :all]
[guestbook.handler :refer :all]))
(deftest test-app
(testing "main route"
(let [response (app (request :get "/"))]
(is (= 200 200)))
)
)
scott@endor ~/dev/guestbook% lein test
[2016-04-26 22:00:31,504][DEBUG][org.jboss.logging] Logging Provider: org.jboss.logging.Log4jLoggerProvider
lein test guestbook.test.db.core
[2016-04-26 22:00:32,245][INFO][com.zaxxer.hikari.HikariDataSource] HikariPool-0 - is starting.
[2016-04-26 22:00:32,548][INFO][migratus.core] Starting migrations
[2016-04-26 22:00:32,603][INFO][migratus.core] Ending migrations
lein test guestbook.test.handler
lein test :only guestbook.test.handler/test-app
ERROR in (test-app) (AFn.java:429)
Uncaught exception, not in assertion.
expected: nil
actual: clojure.lang.ArityException: Wrong number of args (1) passed to: handler/app
at clojure.lang.AFn.throwArity (AFn.java:429)
clojure.lang.AFn.invoke (AFn.java:32)
guestbook.test.handler$fn__16685.invokeStatic (handler.clj:8)
guestbook.test.handler/fn (handler.clj:6)
clojure.test$test_var$fn__7983.invoke (test.clj:716)
clojure.test$test_var.invokeStatic (test.clj:716)
clojure.test$test_var.invoke (test.clj:707)
clojure.test$test_vars$fn__8005$fn__8010.invoke (test.clj:734)
clojure.test$default_fixture.invokeStatic (test.clj:686)
clojure.test$default_fixture.invoke (test.clj:682)
clojure.test$test_vars$fn__8005.invoke (test.clj:734)
clojure.test$default_fixture.invokeStatic (test.clj:686)
clojure.test$default_fixture.invoke (test.clj:682)
clojure.test$test_vars.invokeStatic (test.clj:730)
clojure.test$test_all_vars.invokeStatic (test.clj:736)
clojure.test$test_ns.invokeStatic (test.clj:757)
clojure.test$test_ns.invoke (test.clj:742)
clojure.core$map$fn__4785.invoke (core.clj:2646)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.Cons.next (Cons.java:39)
clojure.lang.RT.boundedLength (RT.java:1749)
clojure.lang.RestFn.applyTo (RestFn.java:130)
clojure.core$apply.invokeStatic (core.clj:648)
clojure.test$run_tests.invokeStatic (test.clj:767)
clojure.test$run_tests.doInvoke (test.clj:767)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:646)
clojure.core$apply.invoke (core.clj:641)
user$eval16487$fn__16546$fn__16577.invoke (form-init1474646922733525294.clj:1)
user$eval16487$fn__16546$fn__16547.invoke (form-init1474646922733525294.clj:1)
user$eval16487$fn__16546.invoke (form-init1474646922733525294.clj:1)
user$eval16487.invokeStatic (form-init1474646922733525294.clj:1)
user$eval16487.invoke (form-init1474646922733525294.clj:1)
clojure.lang.Compiler.eval (Compiler.java:6927)
clojure.lang.Compiler.eval (Compiler.java:6917)
clojure.lang.Compiler.load (Compiler.java:7379)
clojure.lang.Compiler.loadFile (Compiler.java:7317)
clojure.main$load_script.invokeStatic (main.clj:275)
clojure.main$init_opt.invokeStatic (main.clj:277)
clojure.main$init_opt.invoke (main.clj:277)
clojure.main$initialize.invokeStatic (main.clj:308)
clojure.main$null_opt.invokeStatic (main.clj:342)
clojure.main$null_opt.invoke (main.clj:339)
clojure.main$main.invokeStatic (main.clj:421)
clojure.main$main.doInvoke (main.clj:384)
clojure.lang.RestFn.invoke (RestFn.java:421)
clojure.lang.Var.invoke (Var.java:383)
clojure.lang.AFn.applyToHelper (AFn.java:156)
clojure.lang.Var.applyTo (Var.java:700)
clojure.main.main (main.java:37)
Ran 2 tests containing 5 assertions.
0 failures, 1 errors.
Tests failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment