Skip to content
Snippets Groups Projects
Commit c190d89b authored by Sean Owen's avatar Sean Owen
Browse files

[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 <sowen@cloudera.com>

Closes #14133 from srowen/SPARK-15889.2.
parent 772c213e
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ trait StreamTest extends QueryTest with SharedSQLContext with Timeouts { ...@@ -189,7 +189,7 @@ trait StreamTest extends QueryTest with SharedSQLContext with Timeouts {
} }
def apply(message: String)(condition: StreamExecution => Unit): AssertOnQuery = { def apply(message: String)(condition: StreamExecution => Unit): AssertOnQuery = {
new AssertOnQuery(s => { condition; true }, message) new AssertOnQuery(s => { condition(s); true }, message)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment