flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljos...@apache.org
Subject flink git commit: [hotfix] Relax test condition in ExternalProcessRunnerTest
Date Fri, 05 Feb 2016 13:56:53 GMT
Repository: flink
Updated Branches:
  refs/heads/master b54499b1c -> 4c1f4471c


[hotfix] Relax test condition in ExternalProcessRunnerTest


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/4c1f4471
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/4c1f4471
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/4c1f4471

Branch: refs/heads/master
Commit: 4c1f4471cb5cfb0cb810be0025b4d5eb71a152d4
Parents: b54499b
Author: Aljoscha Krettek <aljoscha.krettek@gmail.com>
Authored: Fri Feb 5 14:55:56 2016 +0100
Committer: Aljoscha Krettek <aljoscha.krettek@gmail.com>
Committed: Fri Feb 5 14:56:29 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/flink/util/ExternalProcessRunnerTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/4c1f4471/flink-core/src/test/java/org/apache/flink/util/ExternalProcessRunnerTest.java
----------------------------------------------------------------------
diff --git a/flink-core/src/test/java/org/apache/flink/util/ExternalProcessRunnerTest.java
b/flink-core/src/test/java/org/apache/flink/util/ExternalProcessRunnerTest.java
index 5ebe772..1de58a9 100644
--- a/flink-core/src/test/java/org/apache/flink/util/ExternalProcessRunnerTest.java
+++ b/flink-core/src/test/java/org/apache/flink/util/ExternalProcessRunnerTest.java
@@ -20,6 +20,7 @@ package org.apache.flink.util;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 public class ExternalProcessRunnerTest {
@@ -71,8 +72,7 @@ public class ExternalProcessRunnerTest {
 
 		assertEquals(1, result);
 		// this needs to be adapted if the test changes because it contains the line number
-		assertEquals(runner.getErrorOutput().toString(), "Exception in thread \"main\" java.lang.RuntimeException:
HEHE, I'm failing.\n" +
-			"\tat org.apache.flink.util.ExternalProcessRunnerTest$Failing.main(ExternalProcessRunnerTest.java:94)\n");
+		assertTrue(runner.getErrorOutput().toString().startsWith("Exception in thread \"main\""));
 	}
 
 


Mime
View raw message