Open kentbull opened 1 year ago
The same problem occurs when I run lein test
in the increment folder for video 28.
I am able to run tests at the REPL. I run them by sending the forms to the REPL and then running the functions from the REPL.
How does your system look like at this point? When you evaluate state/system
what do you get?
state/system
looks like the following, with the jdbc URL redacted:
{:db/postgres #next.jdbc.default_options.DefaultOptions{
:connectable "jdbc:postgresql://my_heroku_psql_instance_url",
:options {:qualifier-fn #'camel-snake-kebab.core/->kebab-case,
:label-fn #'camel-snake-kebab.core/->kebab-case,
:builder-fn #'next.jdbc.result-set/as-kebab-maps,
:column-fn #'camel-snake-kebab.core/->snake_case,
:table-fn #'camel-snake-kebab.core/->snake_case}},
:cheffy/app #object[clojure.lang.AFunction$1 0x78d6ec88 "clojure.lang.AFunction$1@78d6ec88"],
:server/jetty #object[org.eclipse.jetty.server.Server 0x12be30ac "Server@12be30ac{STARTED}[9.4.28.v20200408]"]}
Well, that is only when running in the REPL. Are you referring to evaluating state/system
from within the lein test
call?
Well, this does make sense. I have been running tests from the REPL, which is a live running system, and there hasn't been any code written to initialize the application for the Leiningen tests. Maybe this is a non-issue. I can run the tests successfully from within the REPL, just not with lein test
I am getting 1 error running tests near the middle of lesson 27, a NullPointerException saying the "app" is null.
It's referring to the app defined in the let binding of
test-endpoint
Error:
It seems like somehow integrant is not pulling in the "app" state correctly.