ReplicationIT: Retry/timeout on assertion of replication tasks count

When running the tests repeatedly [1], flakiness is observed in the
assertion about the expected count of replication tasks. Intermittently
it fails due to the actual value being less than expected [2, 3].

Wrapping the assertion in a retry with timeout fixes this flakiness.

[1] bazel test --runs_per_test=24 plugins/replication:replication_tests
[2] value of    : listReplicationTasks(...).size()
    expected    : 4
    but was     : 2
[3] value of    : listReplicationTasks(...).size()
    expected    : 4
    but was     : 3

Bug: Issue 11843
Change-Id: I13b05f0dcc0ec95af9e84522231a291f1a785f90
1 file changed
tree: d07c729b81e912c4815ce83bd208bf654d41dd6e
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE