Commit b80b683
authored
Fix IndexShardTests#testFlushTimeExcludingWaiting (#108109)
It may take less than a millisecond to acquire/release a lock with no contention,
and flush stats have only millisecond resolution, so we can't guarantee that flush
time excluding waiting is actually less than flushTime after rounding.
So, we have to relax the assertion and make it `lessThanOrEqualTo` instead of
`lessThan`
Fixes #1074621 parent eea94ae commit b80b683
File tree
1 file changed
+2
-4
lines changed- server/src/test/java/org/elasticsearch/index/shard
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| |||
4033 | 4032 | | |
4034 | 4033 | | |
4035 | 4034 | | |
4036 | | - | |
4037 | 4035 | | |
4038 | 4036 | | |
4039 | 4037 | | |
| |||
4059 | 4057 | | |
4060 | 4058 | | |
4061 | 4059 | | |
4062 | | - | |
| 4060 | + | |
4063 | 4061 | | |
4064 | | - | |
| 4062 | + | |
4065 | 4063 | | |
4066 | 4064 | | |
4067 | 4065 | | |
| |||
0 commit comments