liberator

sandbags 2015-08-18T12:02:37.000020Z

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.

ordnungswidrig 2015-08-18T12:03:26.000021Z

do you use something like wrap-reload?

sandbags 2015-08-18T12:03:57.000022Z

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

sandbags 2015-08-18T12:04:13.000023Z

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

sandbags 2015-08-18T12:04:40.000024Z

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

ordnungswidrig 2015-08-18T12:04:49.000025Z

are you using midje or clojure.test?

sandbags 2015-08-18T12:04:53.000027Z

expectations

sandbags 2015-08-18T12:05:24.000028Z

my app setup: https://gist.github.com/mmower/46644f306e895c35a91c

ordnungswidrig 2015-08-18T12:06:24.000031Z

Nothing jumping into my eye.

ordnungswidrig 2015-08-18T12:06:46.000032Z

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

ordnungswidrig 2015-08-18T12:07:31.000033Z

https://github.com/weavejester/lein-ring#web-server-options

ordnungswidrig 2015-08-18T12:07:48.000035Z

lein-ring defaults to :autoreload true

ordnungswidrig 2015-08-18T12:09:30.000036Z

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)