Skip to content

Commit d474a2e

Browse files
committed
MLE-26460 Fixing test failures
Some test failures on Jenkins due to a test plumbing issue.
1 parent 86f5aa7 commit d474a2e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

marklogic-client-api/src/test/java/com/marklogic/client/test/AbstractClientTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
2+
* Copyright (c) 2010-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
33
*/
44
package com.marklogic.client.test;
55

@@ -20,9 +20,14 @@ protected final DatabaseClient getDatabaseClient() {
2020

2121
@Override
2222
protected final String getJavascriptForDeletingDocumentsBeforeTestRuns() {
23+
// The "/acme/" directory was previously deleted by AbstractOpticUpdateTest. It still needs to be deleted
24+
// some tests end up copying URIs to that directory but retain the 'test-data' collection.
2325
return """
2426
declareUpdate();
25-
cts.uris('', [], cts.notQuery(cts.collectionQuery(['test-data', 'temporal-collection'])))
27+
cts.uris('', [], cts.orQuery([
28+
cts.notQuery(cts.collectionQuery(['test-data', 'temporal-collection'])),
29+
cts.directoryQuery('/acme/', 'infinity')
30+
]))
2631
.toArray().forEach(item => xdmp.documentDelete(item))
2732
""";
2833
}

0 commit comments

Comments
 (0)