Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed May 5, 2021
1 parent b7fa114 commit 01eb6dd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,12 @@ private void testUseAutoConsumeWithSchemalessTopic(SchemaType schema) throws Exc
if (schema == SchemaType.BYTES) {
assertEquals(schema, message.getSchema().get().getSchemaInfo().getType());
assertEquals(schema, message2.getSchema().get().getSchemaInfo().getType());
} else if (schema == SchemaType.NONE) {
// schema NONE is always reported as BYTES
assertEquals(SchemaType.BYTES, message.getSchema().get().getSchemaInfo().getType());
assertEquals(SchemaType.BYTES, message2.getSchema().get().getSchemaInfo().getType());
} else {
assertFalse(message.getSchema().isPresent());
assertEquals(schema, message2.getSchema().get().getSchemaInfo().getType());
fail();
}

assertEquals("foo".getBytes(StandardCharsets.UTF_8), message.getValue());
Expand Down

0 comments on commit 01eb6dd

Please sign in to comment.