Skip to content

Commit 7adca62

Browse files
authored
Merge pull request #4623 from dizzzz/bugfix/delay_collection_timing
[bugfix] add delay so timing of collections are subtle different
2 parents 048b9c5 + 34c221c commit 7adca62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exist-core/src/test/java/org/exist/storage/CopyCollectionTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,12 @@ private void copyCol(final Subject execAsUser, final DBBroker.PreserveType prese
367367
final Txn transaction = pool.getTransactionManager().beginTransaction();
368368
final Collection srcCol = broker.openCollection(src, LockMode.READ_LOCK);
369369
final Collection destCol = broker.openCollection(dest.removeLastSegment(), LockMode.WRITE_LOCK)) {
370-
370+
Thread.sleep(10);
371371
broker.copyCollection(transaction, srcCol, destCol, dest.lastSegment(), preserve);
372372

373373
transaction.commit();
374+
} catch (InterruptedException e) {
375+
throw new EXistException(e);
374376
}
375377

376378
// basic shallow check that copy of the collection is the same as the original

0 commit comments

Comments
 (0)