This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-19
Channels
- # announcements (2)
- # beginners (448)
- # calva (10)
- # cider (27)
- # clojure (121)
- # clojure-argentina (2)
- # clojure-brasil (6)
- # clojure-chicago (1)
- # clojure-colombia (9)
- # clojure-ecuador (1)
- # clojure-europe (1)
- # clojure-italy (14)
- # clojure-mexico (1)
- # clojure-nl (19)
- # clojure-spec (11)
- # clojure-uk (160)
- # clojurescript (25)
- # core-async (7)
- # cursive (8)
- # data-science (1)
- # datascript (1)
- # datomic (4)
- # devops (2)
- # graalvm (3)
- # hoplon (1)
- # immutant (1)
- # jackdaw (32)
- # jobs (2)
- # joker (2)
- # keechma (9)
- # leiningen (26)
- # luminus (13)
- # off-topic (2)
- # overtone (2)
- # quil (5)
- # reagent (38)
- # reitit (13)
- # shadow-cljs (16)
- # spacemacs (2)
- # tools-deps (4)
- # xtdb (12)
I've created a PR that fixes the problem that @billh has been experiencing: https://github.com/FundingCircle/jackdaw/pull/149
Many thanks for chasing it down @billh and @kelveden. Looks good to me. I'll try to get some other eyes on it soon.
@cddr I am finally trying out what you suggested above with the new
do!
command. I am running into an issue that I can’t tell if its my fault or not . The error is as followsHuh. I think my colleague has actually used this feature to do some live debugging stuff so it should work in principal.
also i can confirm the do! is being called as I can see my data being received on the endpoint
if it helps here is the stack trace after the
run-test
which is the last method of my code I see[[clojure.lang.RT assoc "RT.java" 827]
[clojure.core$assoc__5416 invokeStatic "core.clj" 193]
[clojure.core$assoc__5416 doInvoke "core.clj" 190]
[clojure.lang.RestFn invoke "RestFn.java" 494]
[jackdaw.test.commands$command_handler invokeStatic "commands.clj" 24]
[jackdaw.test.commands$command_handler invoke "commands.clj" 17]
[jackdaw.test$fn__37947 invokeStatic "test.clj" 67]
[jackdaw.test$fn__37947 invoke "test.clj" 66]
[jackdaw.test.middleware$with_status$fn__37932 invoke "middleware.clj" 8]
[jackdaw.test.middleware$with_timing$fn__37935 invoke "middleware.clj" 19]
[jackdaw.test.middleware$with_journal_snapshots$fn__37940 invoke "middleware.clj" 35]
[jackdaw.test$run_test$exe__37988 invoke "test.clj" 128]
[jackdaw.test$run_test$fn__37990 invoke "test.clj" 133]
[jackdaw.test$run_test invokeStatic "test.clj" 130]
[jackdaw.test$run_test invoke "test.clj" 112]
So (post-data world)
returns a function that accepts a single argument. I have a hunch that your function returns that single arg (i.e. the journal)
(defn post-data [world]
(fn [journal]
(send journal log-result (write-logs world)
{:result true}
)))
Yep.
The problem you are running into is that the test-machine is trying to assoc
the result of running the command with some metadata that the test-machine collects about the command itself
https://github.com/FundingCircle/jackdaw/blob/master/src/jackdaw/test/commands.clj#L24