Skip to content

Commit e94ee56

Browse files
authored
Fix linting errors (#624)
1 parent 99b851f commit e94ee56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

interceptors/protovalidate/protovalidate_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func TestStreamServerInterceptor(t *testing.T) {
125125
)
126126

127127
out, err := client.SendStream(context.Background(), testvalidate.BadStreamRequest)
128+
assert.Nil(t, err)
128129

129130
_, err = out.Recv()
130131
assert.Error(t, err)

providers/prometheus/server_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ func (s *ServerInterceptorTestSuite) TestContextCancelledTreatedAsStatus() {
148148
defer cancel()
149149

150150
stream, _ := s.Client.PingStream(ctx)
151-
stream.Send(&testpb.PingStreamRequest{})
151+
err := stream.Send(&testpb.PingStreamRequest{})
152+
require.NoError(s.T(), err)
152153
cancel()
153154

154155
requireValueWithRetry(s.SimpleCtx(), s.T(), 1,

0 commit comments

Comments
 (0)