mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-05 19:47:47 +01:00
fix test errors
This commit is contained in:
1 parent
cce9d8a365
commit
ccd48feefb
9 files changed
+423
-161
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user