Skip to content

Conversation

@mattrobenolt
Copy link
Member

No description provided.

@mattrobenolt mattrobenolt requested a review from Phanatic July 27, 2022 00:03

cc := clientConnectionMock{
syncFn: func(ctx context.Context, in *psdbconnect.SyncRequest, opts ...grpc.CallOption) (psdbconnect.Connect_SyncClient, error) {
syncFn: func(ctx context.Context, in *connect.Request[psdbconnect.SyncRequest]) (*connect.ServerStreamForClient[psdbconnect.SyncResponse], error) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got real lost in the sauce here and gave up with the mocks. With grpc-go, the Connect_SyncClient was an interface, so it was simpler to mock, with connect-go these are a concrete type *connect.ServerStreamForClient[T any], so I'm not sure how to mock this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant