This is an automated email from the ASF dual-hosted git repository.

snoopdave pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/roller.git


The following commit(s) were added to refs/heads/master by this push:
     new cee4478  Fix for intermittently failing test.
cee4478 is described below

commit cee44785902ad75aa2ac13dd571489557fc5279f
Author: David M. Johnson <[email protected]>
AuthorDate: Sat Dec 18 15:38:02 2021 -0500

    Fix for intermittently failing test.
---
 app/src/test/java/org/apache/roller/weblogger/util/IPBanListTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/app/src/test/java/org/apache/roller/weblogger/util/IPBanListTest.java 
b/app/src/test/java/org/apache/roller/weblogger/util/IPBanListTest.java
index d4ecedb..b7d0579 100644
--- a/app/src/test/java/org/apache/roller/weblogger/util/IPBanListTest.java
+++ b/app/src/test/java/org/apache/roller/weblogger/util/IPBanListTest.java
@@ -91,7 +91,9 @@ class IPBanListTest {
     @DisplayName("isBanned() reads the file if needed")
     void isBanned4() {
         writeIpBanList("10.0.0.1");
-
+        try { // work around for intermittently failing test
+            Thread.sleep(500);
+        } catch (InterruptedException ignored) {}
         assertTrue(ipBanList.isBanned("10.0.0.1"));
     }
 

Reply via email to