From 358a5ffc369463302d611f2ac642bc6c5f4cc90c Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Wed, 30 Aug 2023 10:28:38 -0400 Subject: [PATCH 1/2] double sleepForReindex in test #9848 --- src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java b/src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java index 37a1c04c71b..d0f20a8642b 100644 --- a/src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java +++ b/src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java @@ -1107,7 +1107,7 @@ public void testAccessFacet() { Response addResponse = UtilIT.uploadFileViaNative(datasetId.toString(), pathToFile, apiToken); // Wait a little while for the index to pick up the file, otherwise timing issue with searching for it. - UtilIT.sleepForReindex(datasetId.toString(), apiToken, 2); + UtilIT.sleepForReindex(datasetId.toString(), apiToken, 4); String successMsgAdd = BundleUtil.getStringFromBundle("file.addreplace.success.add"); From 5516df8a799abd0b8dce93ee950f2cd718929cec Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Wed, 30 Aug 2023 11:42:28 -0400 Subject: [PATCH 2/2] double sleep in test #9848 --- src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java b/src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java index 1a3f4125d36..09052f9e4ea 100644 --- a/src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java +++ b/src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java @@ -372,7 +372,7 @@ public void testMoveDataverse() { while (checkIndex) { try { try { - Thread.sleep(2000); + Thread.sleep(4000); } catch (InterruptedException ex) { } Response search = UtilIT.search("id:dataverse_" + dataverseId + "&subtree=" + dataverseAlias2, apiToken);