forked from TrueCloudLab/frostfs-sdk-go
[#317] api: Revert easyproto marshaler usage
It has caused a noticeable degradation in node. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
bab4d5a692
commit
328d214d2d
110 changed files with 47773 additions and 37555 deletions
|
@ -303,6 +303,10 @@ func TestObjectEncoding(t *testing.T) {
|
|||
o2 := New()
|
||||
require.NoError(t, o2.UnmarshalJSON(data))
|
||||
|
||||
// New protobuf generator replaces nil payload with []byte{} in setters.
|
||||
require.Empty(t, o2.Payload())
|
||||
o2.SetPayload(nil)
|
||||
|
||||
require.Equal(t, o, o2)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue