Stronger check in translog prepare and commit test

This commit strengthens an assertion in the translog prepare commit and
commit test.
This commit is contained in:
Jason Tedor 2017-04-18 23:37:54 -04:00
parent 23b224a5a9
commit 180d1f2219
1 changed files with 1 additions and 1 deletions

View File

@ -2273,7 +2273,7 @@ public class TranslogTests extends ESTestCase {
for (long g = 0; g < committedGeneration; g++) {
assertFileDeleted(translog, g);
}
for (long g = committedGeneration; g < translog.currentFileGeneration(); g++) {
for (long g = committedGeneration; g <= translog.currentFileGeneration(); g++) {
assertFileIsPresent(translog, g);
}
}