Skip to content

Commit 8317dc1

Browse files
committed
Set test length to 40. Runs between 1.1 and 13 seconds at length 40 for me.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1154639 13f79535-47bb-0310-9956-ffa450edef68
1 parent b78eee3 commit 8317dc1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ public void testSetRuleTypeToRulesIllegalArgumentException() {
162162
bmpm.setRuleType(RuleType.RULES);
163163
}
164164

165+
/**
166+
* Runs between 1.1 and 13 seconds at length 40 for me (Gary Gregory, 2011/08/06)
167+
*
168+
* @throws EncoderException
169+
*/
165170
@Test(/* timeout = 20000L */)
166171
public void testSpeedCheck() throws EncoderException {
167172
char[] chars = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'o', 'u' };
@@ -170,7 +175,7 @@ public void testSpeedCheck() throws EncoderException {
170175
Random rand = new Random();
171176
stringBuffer.append(chars[rand.nextInt(chars.length)]);
172177
long start;
173-
for (int i = 0; i < 30; i++) {
178+
for (int i = 0; i < 40; i++) {
174179
start = System.currentTimeMillis();
175180
// System.out.println(i + " String to encode:" + stringBuffer.toString());
176181
bmpm.encode(stringBuffer.toString());

0 commit comments

Comments
 (0)