1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-01 11:58:25 +00:00

chore: update grpc router path

This commit is contained in:
Jason Song
2022-11-22 18:24:01 +08:00
parent 48f5c152b9
commit e346581344
4 changed files with 24 additions and 23 deletions

View File

@@ -14,6 +14,7 @@ import (
"code.gitea.io/bots-proto-go/ping/v1/pingv1connect"
"github.com/bufbuild/connect-go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func MainServiceTest(t *testing.T, h http.Handler) {
@@ -46,7 +47,7 @@ func MainServiceTest(t *testing.T, h http.Handler) {
result, err := client.Ping(context.Background(), connect.NewRequest(&pingv1.PingRequest{
Data: "foobar",
}))
assert.NoError(t, err)
require.NoError(t, err)
assert.Equal(t, "Hello, foobar!", result.Msg.Data)
}
})