Skip to content

Commit 6ea9b3b

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)