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:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user