Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 7, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/e27158eedc3db2c646222ad7aa0c4395 to your computer and use it in GitHub Desktop.
Save deque-blog/e27158eedc3db2c646222ad7aa0c4395 to your computer and use it in GitHub Desktop.
Eventually.assertUntil 100, 5, fn() ->
same_history =
Dispatcher.get_workers()
|> Enum.map(fn w -> Worker.get_history(w) end)
|> all_equal
assert same_history == true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment