Skip to content
Snippets Groups Projects
Commit c09e2f2e authored by alexstocks's avatar alexstocks
Browse files

Add: issue 380 ut

parent aeb4057e
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ import (
import (
hessian "github.com/apache/dubbo-go-hessian2"
"github.com/stretchr/testify/assert"
perrors "github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
func TestDubboPackage_MarshalAndUnmarshal(t *testing.T) {
......@@ -79,5 +79,5 @@ func TestIssue380(t *testing.T) {
pkg := &DubboPackage{}
buf := bytes.NewBuffer([]byte("hello"))
err := pkg.Unmarshal(buf)
assert.True(t, perrors.Cause(err) == hessian.ErrHeaderNotEnough)
}
\ No newline at end of file
assert.True(t, perrors.Cause(err) == hessian.ErrHeaderNotEnough)
}
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