Skip to content

Commit

Permalink
CMR-10140: Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
eereiter committed Nov 1, 2024
1 parent ff172e3 commit 3382ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transmit-lib/test/cmr/transmit/test/search.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
the functionality of the function called, but instead will check that the request includes a
client id."
(:require
[clj-time.core :as time]
[clojure.test :refer [deftest is testing]]
[clj-http.client :as client]
[cmr.transmit.search :as search]))
Expand All @@ -24,7 +25,7 @@
(format "Failed testing %s" (:url arg)))
{:status 204 :body ""})]
(with-redefs [client/request action-tester]
(let [result (search/save-subscription-notification-time context "sub-id-1")]
(let [result (search/save-subscription-notification-time context "sub-id-1" (str (time/now)))]
(is (nil? result))))))

(testing "check for client id"
Expand Down

0 comments on commit 3382ffe

Please sign in to comment.