You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by dh...@apache.org on 2016/09/29 17:29:01 UTC
[1/2] incubator-beam git commit: Closes #1026
Repository: incubator-beam
Updated Branches:
refs/heads/master efb2b83ff -> 5eedfe4af
Closes #1026
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/5eedfe4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/5eedfe4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/5eedfe4a
Branch: refs/heads/master
Commit: 5eedfe4af9cd6dce6c0937a34c502d5a69ade5eb
Parents: efb2b83 242fde7
Author: Dan Halperin <dh...@google.com>
Authored: Thu Sep 29 10:28:50 2016 -0700
Committer: Dan Halperin <dh...@google.com>
Committed: Thu Sep 29 10:28:50 2016 -0700
----------------------------------------------------------------------
.../beam/sdk/io/BoundedReadFromUnboundedSourceTest.java | 10 ----------
1 file changed, 10 deletions(-)
----------------------------------------------------------------------
[2/2] incubator-beam git commit: BoundedReadFromUnboundedSourceTest:
remove unused code
Posted by dh...@apache.org.
BoundedReadFromUnboundedSourceTest: remove unused code
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/242fde7d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/242fde7d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/242fde7d
Branch: refs/heads/master
Commit: 242fde7d075b02adabba4306dc68c1d84b843c6d
Parents: efb2b83
Author: Dan Halperin <dh...@google.com>
Authored: Thu Sep 29 09:42:31 2016 -0700
Committer: Dan Halperin <dh...@google.com>
Committed: Thu Sep 29 10:28:50 2016 -0700
----------------------------------------------------------------------
.../beam/sdk/io/BoundedReadFromUnboundedSourceTest.java | 10 ----------
1 file changed, 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/242fde7d/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java
index 7bf0f35..5a58519 100644
--- a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java
+++ b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java
@@ -18,7 +18,6 @@
package org.apache.beam.sdk.io;
import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.includesDisplayDataFrom;
-import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
@@ -46,7 +45,6 @@ import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class BoundedReadFromUnboundedSourceTest implements Serializable{
private static final int NUM_RECORDS = 100;
- private static List<Integer> finalizeTracker = null;
@Test
@Category(RunnableOnService.class)
@@ -109,9 +107,6 @@ public class BoundedReadFromUnboundedSourceTest implements Serializable{
for (int i = 0; i < values.size(); i++) {
assertEquals(i, (int) values.get(i));
}
- if (finalizeTracker != null) {
- assertThat(finalizeTracker, containsInAnyOrder(values.size() - 1));
- }
return null;
}
}
@@ -128,11 +123,6 @@ public class BoundedReadFromUnboundedSourceTest implements Serializable{
? p.apply(Read.from(source).withMaxReadTime(Duration.millis(200)))
: p.apply(Read.from(source).withMaxNumRecords(NUM_RECORDS));
- List<KV<Integer, Integer>> expectedOutput = new ArrayList<>();
- for (int i = 0; i < NUM_RECORDS; i++) {
- expectedOutput.add(KV.of(0, i));
- }
-
// Because some of the NUM_RECORDS elements read are dupes, the final output
// will only have output from 0 to n where n < NUM_RECORDS.
PAssert.that(output).satisfies(new Checker(dedup, timeBound));