Skip to content

Commit

Permalink
Fix for timing issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Oct 24, 2024
1 parent 1c0bd9a commit 224cc96
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public void testCreateSoftwareDatasetNative() {
String dataset2Pid = JsonPath.from(createDataset.getBody().asString()).getString("data.persistentId");

UtilIT.publishDatasetViaNativeApi(dataset2Pid, "major", apiToken).then().assertThat().statusCode(OK.getStatusCode());

//An explicit sleep is needed here because the searchAndShowFacets won't sleep for the query used here
UtilIT.sleepForReindex(dataset2Pid, apiToken, 5);
Response searchCollection = UtilIT.searchAndShowFacets("parentName:" + dataverseAlias, null);
searchCollection.prettyPrint();
searchCollection.then().assertThat()
Expand Down

0 comments on commit 224cc96

Please sign in to comment.