linkerd2/proxy/tests
Eliza Weisman 49bf01b0da
Add `assert_eventually!` macro to help de-flake telemetry tests (#669)
Closes #615.

Based on @olix0r's suggestion in https://github.com/runconduit/conduit/issues/613#issuecomment-376024744, this PR adds an `assert_eventually!` macro to retry an assertion a set number of times, waiting for 15 ms between retries. This is loosely based on ScalaTest's [eventually](http://doc.scalatest.org/1.8/org/scalatest/concurrent/Eventually.html).

I've rewritten the flaky telemetry tests to use the `assert_eventually!` macro, to compensate for delays in the served metrics being updated between client requests and metrics scrapes.
2018-04-05 11:23:34 -07:00
..
support Add `assert_eventually!` macro to help de-flake telemetry tests (#669) 2018-04-05 11:23:34 -07:00
discovery.rs Proxy: Completely replace current set of destinations on reconnect (#632) 2018-03-29 16:50:08 -10:00
telemetry.rs Add `assert_eventually!` macro to help de-flake telemetry tests (#669) 2018-04-05 11:23:34 -07:00
transparency.rs proxy: allow disable protocol detection on specific ports (#648) 2018-04-02 14:24:36 -07:00