Skip to content

Commit 4afeb51

Browse files
authored
Fixing the testSinkEndToEndWithKeyWithNullRecords test case (apache#983)
1 parent 1b267f7 commit 4afeb51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

samza-test/src/test/java/org/apache/samza/test/samzasql/TestSamzaSqlRemoteTable.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,12 @@ public void testSinkEndToEndWithKeyWithNullRecords() {
6565
SamzaSqlTestConfig.fetchStaticConfigsWithFactories(props, numMessages, false, true);
6666

6767
String sql1 = "Insert into testRemoteStore.testTable.`$table` select __key__, id, name from testavro.SIMPLE1";
68-
String sql2 = "Insert into testRemoteStore.testTable.`$table` select __key__, 'DELETE' as __op__ from testavro.SIMPLE1 WHERE name IS NULL";
6968

70-
List<String> sqlStmts = Arrays.asList(sql1, sql2);
69+
List<String> sqlStmts = Arrays.asList(sql1);
7170
staticConfigs.put(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON, JsonUtil.toJson(sqlStmts));
7271
runApplication(new MapConfig(staticConfigs));
7372

74-
Assert.assertEquals(numMessages - ((numMessages - 1) / TestAvroSystemFactory.NULL_RECORD_FREQUENCY + 1),
75-
RemoteStoreIOResolverTestFactory.records.size());
73+
Assert.assertEquals(numMessages, RemoteStoreIOResolverTestFactory.records.size());
7674
}
7775

7876
@Test (expected = AssertionError.class)

0 commit comments

Comments
 (0)