-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-2275] Migrate test from package 'org.apache.flink.test.javaApiOperators' #866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I adapted all tests except for DataSinkITCase and ExecutionEnvironmentITCase.
|
|
All in all this looks good. The only think that strikes me as odd is the test pattern (which was used also before the refactoring). I am not a big fan of validating results in an List<Tuple2<String, Integer>> result = data.collect()
String expected = "Hello,2\n" +
"Dude,5\n"
compareResultAsTuples(expexted, result)This also solves the issue with the raw type lists, which is usually an indicator that something is not modeled in the right way (unless you dynamically load or instantiate types). |
|
This comment is not a blocker for merging this. Let's just not write future tests like this, and whenever we touch something, we could on-the-fly migrate the tests to not follow this pattern any more... |
|
I agree. I just did not want to change the current pattern... However, we should do it the right way in this PR, too. I will update the code accordingly. |
|
Done. Failing tests revile a Kafka problem (in my Travis, too https://travis-ci.org/mjsax/flink/builds/68598571). Is it known? Module flink-tests passed in all runs. Should be ready to get merged. |
|
@gyfora re-enabled a disabled Kafka test in this pull request: https://github.com/apache/flink/pull/747/files |
|
Done. If Travis is green, please merge. :) |
-> for package 'org.apache.flink.test.javaApiOperators' deaktivated instable test (see comment section https://issues.apache.org/jira/browse/FLINK-2275)
|
Looks good, let me merge this... |
-> for package 'org.apache.flink.test.javaApiOperators' Seactivated unstable test (see comment section https://issues.apache.org/jira/browse/FLINK-2275) This closes apache#866
-> for package 'org.apache.flink.test.javaApiOperators' Seactivated unstable test (see comment section https://issues.apache.org/jira/browse/FLINK-2275) This closes apache#866
-> for package 'org.apache.flink.test.javaApiOperators' Seactivated unstable test (see comment section https://issues.apache.org/jira/browse/FLINK-2275) This closes apache#866
migrated test from execute() to collect()
subtask of https://issues.apache.org/jira/browse/FLINK-2032