Hello community,

here is the log from the commit of package apache-commons-lang for 
openSUSE:Factory checked in at 2018-03-22 12:04:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apache-commons-lang (Old)
 and      /work/SRC/openSUSE:Factory/.apache-commons-lang.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "apache-commons-lang"

Thu Mar 22 12:04:35 2018 rev:9 rq:589218 version:2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/apache-commons-lang/apache-commons-lang.changes  
2017-10-20 16:12:03.430414927 +0200
+++ 
/work/SRC/openSUSE:Factory/.apache-commons-lang.new/apache-commons-lang.changes 
    2018-03-22 12:10:28.974133819 +0100
@@ -1,0 +2,6 @@
+Tue Mar 20 12:18:26 UTC 2018 - [email protected]
+
+- fix flaky StopWatch tests on slow systems by increasing the max value 
(bsc#1085999)
+  * fix_StopWatchTest_for_slow_systems.patch
+
+-------------------------------------------------------------------

New:
----
  fix_StopWatchTest_for_slow_systems.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ apache-commons-lang.spec ++++++
--- /var/tmp/diff_new_pack.HCSr00/_old  2018-03-22 12:10:29.890100989 +0100
+++ /var/tmp/diff_new_pack.HCSr00/_new  2018-03-22 12:10:29.894100845 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package apache-commons-lang
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2000-2009, JPackage Project
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,6 +27,7 @@
 Group:          Development/Libraries/Java
 Url:            http://commons.apache.org/%{base_name}
 Source0:        
http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
+Patch0:         fix_StopWatchTest_for_slow_systems.patch
 Patch1:         0002-Fix-FastDateFormat-for-Java-7-behaviour.patch
 BuildRequires:  ant
 BuildRequires:  ant-junit
@@ -63,6 +64,7 @@
 
 %prep
 %setup -q -n %{short_name}-%{version}-src
+%patch0
 %patch1 -p1
 sed -i 's/\r//' *.txt *.html
 

++++++ fix_StopWatchTest_for_slow_systems.patch ++++++
--- src/test/java/org/apache/commons/lang/time/StopWatchTest.java.orig  
2018-03-20 10:26:19.502634655 +0100
+++ src/test/java/org/apache/commons/lang/time/StopWatchTest.java       
2018-03-20 10:27:17.022772530 +0100
@@ -41,7 +41,7 @@
         assertEquals(time, watch.getTime());
         
         assertTrue(time >= 500);
-        assertTrue(time < 700);
+        assertTrue(time < 1400);
         
         watch.reset();
         assertEquals(0, watch.getTime());
@@ -54,7 +54,7 @@
         
         watch.start();
             try {Thread.sleep(500);} catch (InterruptedException ex) {}
-        assertTrue(watch.getTime() < 2000);
+        assertTrue(watch.getTime() < 4000);
     }
     
     public void testStopWatchSplit(){
@@ -73,9 +73,9 @@
         assertEquals("Formatted split string not the correct length", 
                      splitStr.length(), 11);
         assertTrue(splitTime >= 500);
-        assertTrue(splitTime < 700);
+        assertTrue(splitTime < 1400);
         assertTrue(totalTime >= 1500);
-        assertTrue(totalTime < 1900);
+        assertTrue(totalTime < 3800);
     }
     
     public void testStopWatchSuspend(){
@@ -91,9 +91,9 @@
         long totalTime = watch.getTime();
         
         assertTrue(suspendTime >= 500);
-        assertTrue(suspendTime < 700);
+        assertTrue(suspendTime < 1400);
         assertTrue(totalTime >= 1000);
-        assertTrue(totalTime < 1300);
+        assertTrue(totalTime < 3000);
     }
 
     public void testLang315() {

Reply via email to