Clojurians
#liberator
<
2015-08-18
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

sandbags12:08:37

I don’t know how I am managing this but my “lein ring server-headless 3001” Liberator service appears to be running my test suite every time a request comes in. I’m a little baffled how this is the case. Would appreciate any insights anyone has.

ordnungswidrig12:08:26

do you use something like wrap-reload?

sandbags12:08:57

ordnungswidrig: i don’t have wrap-reload in my app definition

sandbags12:08:13

lein classpath tells me my tests are on the classpath, which i would expect

sandbags12:08:40

but i’m not sure if it amends the classpath when running the server

ordnungswidrig12:08:49

are you using midje or clojure.test?

sandbags12:08:53

expectations

ordnungswidrig12:08:24

Nothing jumping into my eye.

ordnungswidrig12:08:46

Try bisecting, omit routes etc. and look if it stops.

ordnungswidrig12:08:48

lein-ring defaults to :autoreload true

ordnungswidrig12:08:30

I guess somewhere in your test namespace you have a toplevel expression that triggers the expectations to be run. (I’m no expert on expectsions though)