Repository: spark
Updated Branches:
  refs/heads/branch-2.0 5173f847c -> 4b93a833b


[SPARK-15889][STREAMING] Follow-up fix to erroneous condition in StreamTest

## What changes were proposed in this pull request?

A second form of AssertQuery now actually invokes the condition; avoids a build 
warning too

## How was this patch tested?

Jenkins; running StreamTest

Author: Sean Owen <so...@cloudera.com>

Closes #14133 from srowen/SPARK-15889.2.

(cherry picked from commit c190d89bd3cf677400c49238498207b87da9ee78)
Signed-off-by: Sean Owen <so...@cloudera.com>


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

Branch: refs/heads/branch-2.0
Commit: 4b93a833b75d72043fd7770250c25247e690666d
Parents: 5173f84
Author: Sean Owen <so...@cloudera.com>
Authored: Wed Jul 13 10:44:07 2016 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Wed Jul 13 10:44:15 2016 +0100

----------------------------------------------------------------------
 .../src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/4b93a833/sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala 
b/sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala
index f949652..af2b581 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala
@@ -189,7 +189,7 @@ trait StreamTest extends QueryTest with SharedSQLContext 
with Timeouts {
     }
 
     def apply(message: String)(condition: StreamExecution => Unit): 
AssertOnQuery = {
-      new AssertOnQuery(s => { condition; true }, message)
+      new AssertOnQuery(s => { condition(s); true }, message)
     }
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to