              request)))))
 
 (deftest invalid-http-step-tests
-  (are [step expected] (= {:error expected} (get-body @(create-cap step)))
+  (are [step expected] (= {:error expected} (e2e/get-body @(e2e/create-cap step)))
     {:type :http} '{:url missing-required-key
                     :method missing-required-key}))

  [f]
  (let [server (http/start-server handler {:port http-server-port})]
    (with-redefs [http-server server]
      (try (f)
           (finally (.close http-server))))))

(defn ^:private store-reqs-fixture
  "A fixture that resets the request store."

(ns icecap.e2e.http-test
  "End-to-end tests for making HTTP requests."
  (:require [icecap.e2e.common :as e2e]
            [clojure.test :refer :all]
            [aleph.http :as http]
            [taoensso.timbre :refer [info spy]]))
