This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 578e78245b1 [fix][test][branch-4.0] Fix AvroSchemaTest cases that were
invalid
578e78245b1 is described below
commit 578e78245b100d17f5c94f800b13ffb9854bdd6b
Author: Lari Hotari <[email protected]>
AuthorDate: Fri May 15 16:32:03 2026 +0300
[fix][test][branch-4.0] Fix AvroSchemaTest cases that were invalid
The invalid test was removed by #24617 for Pulsar 4.1.0
---
.../java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java
b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java
index 41c4fb3dc86..9118fbaf953 100644
---
a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java
+++
b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/schema/AvroSchemaTest.java
@@ -513,8 +513,8 @@ public class AvroSchemaTest {
.withJSR310ConversionEnabled(false).build());
TimestampPojo decodeWithJsonNoClassLoader =
schemaWithJsonDefNoClassLoader.decode(encode);
- Assert.assertNotEquals(decodeWithJsonNoClassLoader, decodeWithPojo);
- Assert.assertNotEquals(Instant.class,
decodeWithJsonNoClassLoader.getValue().getClass());
+ Assert.assertEquals(decodeWithJsonNoClassLoader, decodeWithPojo);
+ Assert.assertEquals(Instant.class,
decodeWithJsonNoClassLoader.getValue().getClass());
}
@Test
@@ -546,8 +546,8 @@ public class AvroSchemaTest {
.withJSR310ConversionEnabled(true).build());
TimestampPojo decodeWithJsonNoClassLoader =
schemaWithJsonDefNoClassLoader.decode(encode);
- Assert.assertNotEquals(decodeWithJsonNoClassLoader, decodeWithPojo);
- Assert.assertNotEquals(Instant.class,
decodeWithJsonNoClassLoader.getValue().getClass());
+ Assert.assertEquals(decodeWithJsonNoClassLoader, decodeWithPojo);
+ Assert.assertEquals(Instant.class,
decodeWithJsonNoClassLoader.getValue().getClass());
}
@Data