[#109] rpc/message: Remove incorrect copypaste

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-08-27 11:35:49 +03:00
parent 5fece80b42
commit ca33fc4adb

View file

@ -104,11 +104,6 @@ func testCompatibility(t *testing.T, msgGen func(empty bool) message.Message) {
require.NoError(t, err) require.NoError(t, err)
require.JSONEq(t, string(a), string(b)) require.JSONEq(t, string(a), string(b))
if len(a) == 0 {
require.Empty(t, b)
} else {
require.Equal(t, a, b)
}
} }
t.Run("empty", func(t *testing.T) { t.Run("empty", func(t *testing.T) {
msg := msgGen(true) msg := msgGen(true)