Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vruttantmankad committed Apr 3, 2024
1 parent c7ce1dd commit 428bfda
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/ziggurat/mapper_test.clj
Expand Up @@ -323,15 +323,15 @@
((channel-mapper-func user-handler-fn channel) message-payload)
(is @user-handler-called))))
(testing "retry-count set to nil returns rabbitmq-retry-count 0"
(let [user-handler-called (atom false)
message-payload {:retry-count 0
:topic-entity topic
:metadata metadata}
user-handler-fn (fn [user-msg-payload]
(reset! user-handler-called true)
(is (= ((get user-msg-payload :metadata) :rabbitmq-retry-count ) 0)))]
(with-redefs [metrics/increment-count (constantly nil)
(let [user-handler-called (atom false)
message-payload {:retry-count 0
:topic-entity topic
:metadata metadata}
user-handler-fn (fn [user-msg-payload]
(reset! user-handler-called true)
(is (= ((get user-msg-payload :metadata) :rabbitmq-retry-count ) 0)))]
(with-redefs [metrics/increment-count (constantly nil)
get-channel-retry-count (constantly nil) ]
((channel-mapper-func user-handler-fn channel) message-payload)
(is @user-handler-called))))))
((channel-mapper-func user-handler-fn channel) message-payload)
(is @user-handler-called))))))

0 comments on commit 428bfda

Please sign in to comment.