fix test errors

This commit is contained in:
chrislu committed 2025-09-13 00:17:54 -07:00
1 parent cce9d8a365
commit ccd48feefb
9 files changed
+423 -161

No files matched your search

+5 -1
View File
@@ -327,7 +327,11 @@ func TestSchemaDecodeEncode_ErrorHandling(t *testing.T) {
envelope := createConfluentEnvelope(schemaID, []byte("invalid avro data"))
_, err := manager.DecodeMessage(envelope)
assert.Error(t, err)
assert.Contains(t, err.Error(), "failed to decode")
if err != nil {
assert.Contains(t, err.Error(), "failed to decode")
} else {
t.Error("Expected error but got nil - this indicates a bug in error handling")
}
})
t.Run("Invalid JSON Data", func(t *testing.T) {