refactored initialization
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/tech/sendico/pkg/merrors"
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc/codes"
|
||||
@@ -32,7 +32,7 @@ func TestUnarySuccess(t *testing.T) {
|
||||
return Success(resp)
|
||||
}
|
||||
|
||||
unary := Unary[testRequest, testResponse](logger, mservice.Type("test"), handler)
|
||||
unary := Unary(logger, mservice.Type("test"), handler)
|
||||
resp, err := unary(context.Background(), &testRequest{Value: "hello"})
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, resp)
|
||||
|
||||
Reference in New Issue
Block a user