Skip to content

Commit 06689a5

Browse files
committed
[bugfix] Use correct Lock Mode
1 parent 288a743 commit 06689a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/test/java/org/exist/collections/CollectionRemovalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private void removeCollection(final String user, final String password, final Xm
134134
private void retrieveDoc(final XmldbURI uri) throws EXistException, PermissionDeniedException, SAXException, LockException {
135135
final BrokerPool pool = existEmbeddedServer.getBrokerPool();
136136
try(final DBBroker broker = pool.get(Optional.of(pool.getSecurityManager().getSystemSubject()));
137-
final Collection test = broker.openCollection(uri, LockMode.WRITE_LOCK)) {
137+
final Collection test = broker.openCollection(uri, LockMode.READ_LOCK)) {
138138
assertNotNull(test);
139139

140140
try(final LockedDocument lockedDoc = test.getDocumentWithLock(broker, XmldbURI.createInternal("document.xml"), LockMode.READ_LOCK)) {

0 commit comments

Comments
 (0)