1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

fix:modify encoding test proto path (#1388)

* fix:modify encoding test proto  path

* fix

* fix

* fix
This commit is contained in:
yuemoxi
2021-08-28 22:39:51 +08:00
committed by GitHub
parent 12f17a3e2e
commit 0dfab173f9
9 changed files with 61 additions and 60 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
package form
import (
"github.com/go-kratos/kratos/v2/internal/test/testproto"
"testing"
"github.com/go-kratos/kratos/v2/encoding"
"github.com/go-kratos/kratos/v2/internal/testproto/complex"
testproto "github.com/go-kratos/kratos/v2/internal/testproto/encoding"
"github.com/stretchr/testify/require"
)
@@ -34,8 +34,8 @@ func TestFormCodecMarshal(t *testing.T) {
require.Equal(t, []byte("username=kratos"), content)
m := testproto.TestModel{
Id: 1,
Name: "kratos",
Id: 1,
Name: "kratos",
}
content, err = encoding.GetCodec(contentType).Marshal(m)
require.NoError(t, err)