linkerd2/proxy/tests/support
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
..
client.rs proxy: preserve body headers in http1 (#457) 2018-03-05 18:10:51 -08:00
controller.rs Add pod-based metric_labels to destinations response (#429) (#654) 2018-04-02 18:36:57 -07:00
mod.rs Add `assert_eventually!` macro to help de-flake telemetry tests (#669) 2018-04-05 11:23:34 -07:00
proxy.rs proxy: allow disable protocol detection on specific ports (#648) 2018-04-02 14:24:36 -07:00
server.rs Enforce that requests are mapped to connections for each Host: header values (#492) 2018-03-06 16:44:14 -08:00
tcp.rs Enforce that requests are mapped to connections for each Host: header values (#492) 2018-03-06 16:44:14 -08:00