Skip to content

Commit

Permalink
Fix test TestHoodieReaderWriterBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahil Chertara committed Apr 25, 2022
1 parent b8529d9 commit 39f75ef
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -19,6 +19,7 @@

package org.apache.hudi.io.storage;

import org.apache.avro.AvroRuntimeException;
import org.apache.hudi.common.bloom.BloomFilter;

import org.apache.avro.Schema;
Expand Down Expand Up @@ -46,6 +47,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

/**
Expand Down Expand Up @@ -246,6 +248,7 @@ private void verifyRecord(String schemaPath, GenericRecord record, int index) {
} else {
assertEquals(index, record.get("number"));
}
assertNull(record.get("added_field"));
GenericRecord finalRec = record;
assertThrows(AvroRuntimeException.class, () -> finalRec.get("added_field"));
}
}

0 comments on commit 39f75ef

Please sign in to comment.