YARN-6618. TestNMLeveldbStateStoreService#testCompactionCycle can fail if compaction occurs more than once. Contributed by Jason Lowe.

This commit is contained in:
Eric Payne 2017-05-19 11:24:54 -05:00 committed by Xiaoyu Yao
parent 83fef23141
commit 3b481de001
1 changed files with 1 additions and 1 deletions

View File

@ -943,7 +943,7 @@ public class TestNMLeveldbStateStoreService {
};
store.init(conf);
store.start();
verify(mockdb, timeout(10000)).compactRange(
verify(mockdb, timeout(10000).atLeastOnce()).compactRange(
(byte[]) isNull(), (byte[]) isNull());
store.close();
}