You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sm...@apache.org on 2014/01/26 09:06:41 UTC

svn commit: r1561463 - /mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java

Author: smarthi
Date: Sun Jan 26 08:06:40 2014
New Revision: 1561463

URL: http://svn.apache.org/r1561463
Log:
MAHOUT-1390: Removed redundant timeout for tstSvdHang() and removed unused imports

Modified:
    mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java

Modified: mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java
URL: http://svn.apache.org/viewvc/mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java?rev=1561463&r1=1561462&r2=1561463&view=diff
==============================================================================
--- mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java (original)
+++ mahout/trunk/math/src/test/java/org/apache/mahout/math/TestSingularValueDecomposition.java Sun Jan 26 08:06:40 2014
@@ -21,8 +21,6 @@ import com.google.common.base.Charsets;
 import com.google.common.base.Splitter;
 import com.google.common.collect.Iterables;
 import com.google.common.io.Resources;
-import org.apache.commons.math3.linear.Array2DRowRealMatrix;
-import org.apache.commons.math3.linear.RealMatrix;
 import org.apache.mahout.common.RandomUtils;
 import org.apache.mahout.math.function.Functions;
 import org.junit.Test;
@@ -30,16 +28,9 @@ import org.junit.Test;
 import java.io.IOException;
 import java.util.List;
 import java.util.Random;
-import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 
-import static org.junit.Assert.assertEquals;
-
 //To launch this test only : mvn test -Dtest=org.apache.mahout.math.TestSingularValueDecomposition
 public final class TestSingularValueDecomposition extends MahoutTestCase {
   
@@ -244,7 +235,7 @@ public final class TestSingularValueDeco
     assertEquals(3.0, svd.cond(), 1.5e-15);
   }
 
-  @Test(timeout=1000)
+  @Test
   public void testSvdHang() throws IOException, InterruptedException, ExecutionException, TimeoutException {
     System.out.printf("starting hanging-svd\n");
     final Matrix m = readTsv("hanging-svd.tsv");