Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
idantavor committed Sep 3, 2024
1 parent dd0c9dc commit 1c0ed6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/ketu/async/integration_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[clojure.core.async :as async]
[ketu.clients.consumer :as consumer]
[ketu.clients.producer :as producer]
[ketu.decorators.consumer.protocol :as cdp]
[ketu.decorators.consumer.protocol :refer [ConsumerDecorator]]
[ketu.async.source :as source]
[ketu.async.sink :as sink]
[ketu.test.kafka-setup :as kafka-setup])
Expand Down Expand Up @@ -223,13 +223,13 @@
:group-id "clicks-test-consumer"
:auto-offset-reset "earliest"
:shape :value
:ketu.source/consumer-decorator (reify cdp/ConsumerDecorator
:ketu.source/consumer-decorator (reify ConsumerDecorator
(poll! [_ {_consumer :ketu.source/consumer} poll-fn]
(let [records (poll-fn)]
(doseq [^ConsumerRecord record records]
(async/>!! result-chan (String. ^"[B" (.value record))))
records))
(validate [_ opts]
(validate [_ _]
true))}
source (source/source consumer-chan clicks-consumer-opts)
clicks-producer-opts {:name "clicks-producer"
Expand Down Expand Up @@ -260,10 +260,10 @@
:group-id "clicks-test-consumer"
:auto-offset-reset "earliest"
:shape :value
:ketu.source/consumer-decorator (reify cdp/ConsumerDecorator
:ketu.source/consumer-decorator (reify ConsumerDecorator
(poll! [_ _ _]
nil)
(validate [_ opts]
(validate [_ _]
false))}]
(is (thrown-with-msg? Exception #"Consumer decorator validation failed"
(source/source consumer-chan clicks-consumer-opts)))))))

0 comments on commit 1c0ed6d

Please sign in to comment.