This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 6d6a6dd81f0e362a6ed60ca22aeb5f4e5af0f2e6 Author: juanpablo <[email protected]> AuthorDate: Thu Oct 10 23:26:34 2019 +0200 cut wait to a 10th, 0.2secs is enough between page saves --- .../providers/BasicAttachmentProviderTest.java | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jspwiki-main/src/test/java/org/apache/wiki/providers/BasicAttachmentProviderTest.java b/jspwiki-main/src/test/java/org/apache/wiki/providers/BasicAttachmentProviderTest.java index a36aa85..c6b5675 100644 --- a/jspwiki-main/src/test/java/org/apache/wiki/providers/BasicAttachmentProviderTest.java +++ b/jspwiki-main/src/test/java/org/apache/wiki/providers/BasicAttachmentProviderTest.java @@ -19,14 +19,6 @@ package org.apache.wiki.providers; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileWriter; -import java.io.StringReader; -import java.util.Date; -import java.util.List; -import java.util.Properties; - import org.apache.wiki.TestEngine; import org.apache.wiki.attachment.Attachment; import org.apache.wiki.util.FileUtil; @@ -35,6 +27,14 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileWriter; +import java.io.StringReader; +import java.util.Date; +import java.util.List; +import java.util.Properties; + public class BasicAttachmentProviderTest { public static final String NAME1 = "TestPage"; @@ -193,7 +193,7 @@ public class BasicAttachmentProviderTest m_provider.putAttachmentData( att, new FileInputStream(in) ); - Thread.sleep( 2000L ); // So that we get a bit of granularity. + Thread.sleep( 200L ); // So that we get a bit of granularity. Attachment att2 = new Attachment( m_engine, NAME2, "test2.txt" ); @@ -229,7 +229,7 @@ public class BasicAttachmentProviderTest m_provider.putAttachmentData( att, new FileInputStream(in) ); - Thread.sleep( 2000L ); // So that we get a bit of granularity. + Thread.sleep( 200L ); // So that we get a bit of granularity. Attachment att2 = new Attachment( m_engine, NAME2, "test2.txt" ); @@ -273,7 +273,7 @@ public class BasicAttachmentProviderTest try { - Thread.sleep( 2000L ); // So that we get a bit of granularity. + Thread.sleep( 200L ); // So that we get a bit of granularity. Attachment att2 = new Attachment( m_engine, NAME2, "test2.txt" ); @@ -318,7 +318,7 @@ public class BasicAttachmentProviderTest try { - Thread.sleep( 2000L ); // So that we get a bit of granularity. + Thread.sleep( 200L ); // So that we get a bit of granularity. Attachment att2 = new Attachment( m_engine, NAME2, "test2.txt" ); @@ -350,7 +350,7 @@ public class BasicAttachmentProviderTest m_provider.putAttachmentData( att, new FileInputStream(in) ); - Thread.sleep( 2000L ); // So that we get a bit of granularity. + Thread.sleep( 200L ); // So that we get a bit of granularity. Attachment att2 = new Attachment( m_engine, NAME2, "test2." );
