Accepting request 238282 from home:Andreas_Schwab:Factory
- testsuite.patch: avoid spurious timeout in BeiderMorse tests OBS-URL: https://build.opensuse.org/request/show/238282 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-codec?expand=0&rev=15
This commit is contained in:
parent
9ad895f901
commit
da515e20d1
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 22 17:18:33 UTC 2014 - schwab@suse.de
|
||||
|
||||
- testsuite.patch: avoid spurious timeout in BeiderMorse tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 15 15:35:01 UTC 2014 - darin@darins.net
|
||||
|
||||
|
@ -36,6 +36,9 @@ Source1: http://www.apache.org/dist/commons/%{base_name}/source/%{short_n
|
||||
Source2: apache-commons-codec.keyring
|
||||
Source4: MANIFEST.MF
|
||||
|
||||
# PATCH-FIX-OPENSUSE Avoid spurious timeout in BeiderMorse tests
|
||||
Patch0: timeout.patch
|
||||
|
||||
BuildRequires: ant >= 1.7
|
||||
BuildRequires: ant-junit >= 1.7
|
||||
BuildRequires: java-devel >= 1.6.0
|
||||
@ -90,6 +93,7 @@ Javadoc for %{name}.
|
||||
%prep
|
||||
%gpg_verify %{SOURCE1}
|
||||
%setup -q -n %{short_name}-%{version}-src
|
||||
%patch0 -p1
|
||||
|
||||
#fixes eof encoding
|
||||
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
|
||||
|
26
timeout.patch
Normal file
26
timeout.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: commons-codec-1.8-src/src/test/java/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
|
||||
===================================================================
|
||||
--- commons-codec-1.8-src.orig/src/test/java/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
|
||||
+++ commons-codec-1.8-src/src/test/java/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java
|
||||
@@ -125,7 +125,7 @@ public class BeiderMorseEncoderTest exte
|
||||
Languages.getInstance("thereIsNoSuchLanguage");
|
||||
}
|
||||
|
||||
- @Test(timeout = 10000L)
|
||||
+ @Test
|
||||
public void testLongestEnglishSurname() throws EncoderException {
|
||||
final BeiderMorseEncoder bmpm = createGenericApproxEncoder();
|
||||
bmpm.encode("MacGhilleseatheanaich");
|
||||
Index: commons-codec-1.8-src/src/test/java/org/apache/commons/codec/language/bm/PhoneticEngineTest.java
|
||||
===================================================================
|
||||
--- commons-codec-1.8-src.orig/src/test/java/org/apache/commons/codec/language/bm/PhoneticEngineTest.java
|
||||
+++ commons-codec-1.8-src/src/test/java/org/apache/commons/codec/language/bm/PhoneticEngineTest.java
|
||||
@@ -71,7 +71,7 @@ public class PhoneticEngineTest {
|
||||
this.maxPhonemes = maxPhonemes;
|
||||
}
|
||||
|
||||
- @Test(timeout = 10000L)
|
||||
+ @Test
|
||||
public void testEncode() {
|
||||
final PhoneticEngine engine = new PhoneticEngine(this.nameType, this.ruleType, this.concat, this.maxPhonemes);
|
||||
|
Loading…
Reference in New Issue
Block a user