Skip to content

Commit 01c5681

Browse files
committed
resolve error "This dataset is locked. Reason: Ingest" #11600
1 parent b336267 commit 01c5681

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/test/java/edu/harvard/iq/dataverse/api/JsonLDExportIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,18 @@ public void testJsonLDExportWithIncompleteHtmlTagsInFileDescription() {
7171
.add("description", problematicDescription)
7272
.add("label", "test-file-with-csp-tag.tab");
7373

74+
String pathToFile = "src/test/resources/tab/test.tab";
75+
7476
Response uploadResponse = UtilIT.uploadFileViaNative(
7577
datasetId.toString(),
76-
"src/test/resources/tab/test.tab",
78+
pathToFile,
7779
fileMetadata.build(),
7880
apiToken
7981
);
8082
uploadResponse.then().assertThat().statusCode(200);
8183

84+
assertTrue(UtilIT.sleepForLock(datasetId.longValue(), "Ingest", apiToken, UtilIT.MAXIMUM_INGEST_LOCK_DURATION), "Failed test if Ingest Lock exceeds max duration " + pathToFile);
85+
8286
// Publish dataset
8387
Response publishResponse = UtilIT.publishDatasetViaNativeApi(
8488
datasetPersistentId,

0 commit comments

Comments
 (0)