Skip to content

Commit

Permalink
tests: tap-results renamed to taps
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorbin committed Sep 27, 2024
1 parent fe9efbe commit 876e4f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions dev/resources/tests/test1.edn
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{:kind "client"
:time 13e9}]
:target :test
:tap-results {:result [{:metric 3/10
:time 4e9
:kind "client"
:name "RATE"
}]}}}
:taps {:result [{:metric 3/10
:time 4e9
:kind "client"
:name "RATE"
}]}}}
2 changes: 1 addition & 1 deletion src/clojure/mirabelle/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
(get streams target)))
(doseq [event (:input test-config)]
(stream/push! stream-handler event (or target :default)))
(doseq [[tap-name expected] (:tap-results test-config)]
(doseq [[tap-name expected] (:taps test-config)]
(when-not (= expected (get @tap tap-name))
(swap! result
conj
Expand Down
8 changes: 4 additions & 4 deletions test/resources/test/failed/tests/test1.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{:t1 {:input [{:metric 13}]
:tap-results {:foo [{:metric 13}]}}
:taps {:foo [{:metric 13}]}}
:t2 {:input [{:metric 101}]
:tap-results {:foo [{:metric 100}]}}
:taps {:foo [{:metric 100}]}}
:t3 {:input [{:metric 101 :service "aa"}]
:tap-results {:foo [{:metric 101 :service "aa"}]
:baz [{:metric 101 :service "aa"}]}}}
:taps {:foo [{:metric 101 :service "aa"}]
:baz [{:metric 101 :service "aa"}]}}}
4 changes: 2 additions & 2 deletions test/resources/test/successful/tests/test1.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
:t2 {:input [{:metric 101}]
:tap-results {:foo [{:metric 101}]}}
:t3 {:input [{:metric 101 :service "aa"}]
:tap-results {:foo [{:metric 101 :service "aa"}]
:baz [{:metric 101 :service "aa"}]}}}
:taps {:foo [{:metric 101 :service "aa"}]
:baz [{:metric 101 :service "aa"}]}}}

0 comments on commit 876e4f4

Please sign in to comment.