 (deftest singe-segment-return
   (checking
    "A single returned segment attaches to its root"
-   (times 30)
+   (times 15)
    [input (gen-segment)
     output (segment-map)]
    (let [f (fn [segment] output)

(deftest throws-exception
  (checking
   "Functions that throw exceptions pass the exception object back"
   (times 30)
   [input (gen/vector (gen-segment))]
   (let [f (fn [segment] (throw (ex-info "exception" {:val 42})))
         event {:onyx.core/batch input}

(deftest parameterized-functions
  (checking
   "Functions can be parameterized via the event map"
   (times 15)
   [input (gen/vector (gen-segment))
    params (gen/vector (gen/resize 10 gen/any))]
   (let [f (fn [& args] {:result (or (butlast args) [])})
