Last active
August 29, 2015 14:04
-
-
Save dbriones/eae041030c8834647aa6 to your computer and use it in GitHub Desktop.
moving-time-window retains state across tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(streams | |
(moving-time-window 10 | |
(tap :mtw | |
#(info %)))) | |
(tests | |
(let [input {:service "some-service"}] | |
(deftest moving-time-window-should-not-retain-state-between-tests | |
(is (= (inject! [input]) | |
{:mtw [[input]]}))) | |
(deftest moving-time-window-should-accumulate-events | |
(is (= (inject! [input]) | |
{:mtw [[input]]}))))) | |
Author
dbriones
commented
Aug 5, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment