Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wavejumper committed May 27, 2022
1 parent 894a036 commit 6287882
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/io/operatr/agent_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
props))

(deftest filter-props
(is (empty? (StreamsRegistry/filterProperties (->props {"fo" "bar"}))))
(is (= {"bootstrap.servers" "xyz"}
(is (= {"compression.type" "gzip"}
(StreamsRegistry/filterProperties (->props {"fo" "bar"}))))
(is (= {"bootstrap.servers" "xyz"
"compression.type" "lz4"}
(into {} (StreamsRegistry/filterProperties (->props {"compression.type" "lz4" "bootstrap.servers" "xyz"})))))
(is (= {"bootstrap.servers" "xyz"
"compression.type" "gzip"}
(into {} (StreamsRegistry/filterProperties (->props {"fo" "bar" "bootstrap.servers" "xyz"}))))))

(defn ^Topology test-topology
Expand Down

0 comments on commit 6287882

Please sign in to comment.