Skip to content

Commit

Permalink
fix: Properly initialize the testpb.InterceptorTestSuite (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen authored Dec 18, 2024
1 parent 7c9b47b commit 35ce001
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions middleware/grpc/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,12 @@ func (s *testPingService) PingList(_ *testpb.PingListRequest, stream testpb.Test

func TestTraceStreamServerInterceptor(t *testing.T) {
s := &streamServerInterceptorTestSuite{
&testpb.InterceptorTestSuite{
TestService: &testPingService{
t: t,
InterceptorTestSuite: &testpb.InterceptorTestSuite{
TestService: &testPingService{&testpb.TestPingService{}, t},
ServerOpts: []grpc.ServerOption{
grpc.StreamInterceptor(TraceStreamServerInterceptor()),
},
},
}
s.InterceptorTestSuite.ServerOpts = []grpc.ServerOption{
grpc.StreamInterceptor(TraceStreamServerInterceptor()),
}
suite.Run(t, s)
}

0 comments on commit 35ce001

Please sign in to comment.