Skip to content

Commit

Permalink
Merge pull request #10965 from GlobalDataverseCommunityConsortium/Dat…
Browse files Browse the repository at this point in the history
…asetTypesIT_fix

DatasetTypesIT- Fix for timing issue in test
  • Loading branch information
ofahimIQSS authored Oct 24, 2024
2 parents 68ae318 + 224cc96 commit cbc20d3
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 cbc20d3

Please sign in to comment.