diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2019-10-07 12:27:01 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-10-09 07:17:49 +0000 |
commit | 31db2360b6076734f9506e17c4d2c93f7b6ee475 (patch) | |
tree | 8c0d3c36677d3718b2f746b0ea0a2c517e47a32c /tests/bugs/readdir-ahead | |
parent | 8d17a94a65ac968b179afa718321105856610e63 (diff) |
Fix spurious failure in bug-1744548-heal-timeout.t
Script was assuming that the heal would have triggered
by the time test was executed, which may not be the case.
It can lead to following failures when the race happens:
...
18:29:45 not ok 14 [ 85/ 1] < 26> '[ 331 == 333 ]' -> ''
...
18:29:45 not ok 16 [ 10097/ 1] < 33> '[ 668 == 666 ]' -> ''
Heal on 3rd brick didn't start completely first time the command was executed.
So the extra count got added to the next profile info.
Fixed it by depending on cumulative stats and waiting until the count is
satisfied using EXPECT_WITHIN
fixes: bz#1759002
Change-Id: I3b410671c902d6b1458a757fa245613cb29d967d
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'tests/bugs/readdir-ahead')
0 files changed, 0 insertions, 0 deletions