新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 20988ff7 authored by XinFeng Liu's avatar XinFeng Liu :mouse2:

fix : test package dara fix

No related merge requests found
......@@ -35,9 +35,9 @@ func TestPackage(t *testing.T) {
//require.True(t, bytes.Equal(pkgBytes3, []byte{10, 9, 47, 95, 116, 101, 115, 116, 105, 110, 103, 18, 40, 31, 139, 8, 0, 0, 0, 0, 0, 4, 255, 0, 12, 0, 243, 255, 72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33, 1, 0, 0, 255, 255, 149, 25, 133, 27, 12, 0, 0, 0, 24, 1}))
pkg3 := &Package{}
err = pkg3.FromBytes(pkgBytes3)
require.Error(t, err)
//require.Equal(t, TestingPID, pkg3.Protocol())
//require.True(t, bytes.Equal(payload, pkg3.Payload()))
require.Nil(t, err)
require.Equal(t, TestingPID, pkg3.Protocol())
require.True(t, bytes.Equal(payload, pkg3.Payload()))
}
func TestPackageToBytesBenchmark(t *testing.T) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment