use of org.neo4j.storageengine.api.ValueIndexEntryUpdate in project neo4j by neo4j.
the class NativeIndexPopulatorTests method shouldApplyLargeAmountOfInterleavedRandomUpdates.
@Test
void shouldApplyLargeAmountOfInterleavedRandomUpdates() throws Exception {
// given
populator.create();
random.reset();
Random updaterRandom = new Random(random.seed());
Iterator<ValueIndexEntryUpdate<IndexDescriptor>> updates = valueCreatorUtil.randomUpdateGenerator(random);
// when
int count = interleaveLargeAmountOfUpdates(updaterRandom, updates);
// then
populator.scanCompleted(nullInstance, populationWorkScheduler, NULL);
populator.close(true, NULL);
random.reset();
verifyUpdates(valueCreatorUtil.randomUpdateGenerator(random), count);
}
Aggregations