Skip to content

Commit

Permalink
Changed expectations in tests to match the slight functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Coupland committed Jul 23, 2014
1 parent 43dcf74 commit 7db087a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/org/spootnik/cyanite/carbon_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[clojure.test :refer :all]))

(deftest formatter-test
(testing "nil-transform"
(is (= nil (formatter nil [] "foo nan 501"))))
(testing "empty-transform"
(is (= '() (formatter [] "foo nan 501"))))

(testing "rollup-transform"
(is (= (list {:path "foo.bar"
Expand All @@ -14,7 +14,7 @@
:ttl 36000
:time 500
:metric 2.0})
(formatter nil
(formatter
(assoc-rollup-to [{:rollup 10 :period 3600}])
"foo.bar 2.0 501")))

Expand All @@ -30,7 +30,7 @@
:ttl 432000
:time 600
:metric 2.0})
(formatter nil
(formatter
(assoc-rollup-to [{:rollup 10 :period 3600}
{:rollup 60 :period 7200}])
"foo.bar 2.0 601")))
Expand Down
3 changes: 2 additions & 1 deletion test/org/spootnik/cyanite/config_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@

(testing "15s:6h is converted correctly"
(is (= {:rollup 15
:period 1440} (convert-shorthand-rollup "15s:6h")))))
:period 1440
:ttl 21600} (convert-shorthand-rollup "15s:6h")))))

0 comments on commit 7db087a

Please sign in to comment.