 (deftest ^:parallel ^:integration-fast test-request-queue-timeout-slow-start-app
   (testing-using-waiter-url
     (let [timeout-period-sec 10
-          timeout-period-ms (time/in-millis (time/seconds timeout-period-sec))
+          timeout-period-ms (t/in-millis (t/seconds timeout-period-sec))
           start-time-ms (System/currentTimeMillis)
           start-up-sleep-ms (* 2 timeout-period-ms)
           request-headers (walk/stringify-keys

;; limitations under the License.
;;
(ns waiter.request-timeout-test
  (:require [clj-time.core :as time]
            [clojure.core.async :as async]
            [clojure.string :as str]
            [clojure.test :refer :all]
            [clojure.tools.logging :as log]


(defmacro assert-failed-request [service-name response-body start-time-ms timeout-period-sec faulty-app?]
  `(let [end-time-ms# (System/currentTimeMillis)
         elapsed-time-secs# (t/in-seconds (t/millis (- end-time-ms# ~start-time-ms)))]
     (is (>= elapsed-time-secs# ~timeout-period-sec))
     (is (str/includes? ~response-body (str "After " ~timeout-period-sec " seconds, no instance available to handle request.")))
     (when ~faulty-app?
