Skip to content

Commit

Permalink
Fix linting errors (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
takp authored Aug 29, 2023
1 parent 99b851f commit e94ee56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions interceptors/protovalidate/protovalidate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func TestStreamServerInterceptor(t *testing.T) {
)

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

_, err = out.Recv()
assert.Error(t, err)
Expand Down
3 changes: 2 additions & 1 deletion providers/prometheus/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ func (s *ServerInterceptorTestSuite) TestContextCancelledTreatedAsStatus() {
defer cancel()

stream, _ := s.Client.PingStream(ctx)
stream.Send(&testpb.PingStreamRequest{})
err := stream.Send(&testpb.PingStreamRequest{})
require.NoError(s.T(), err)
cancel()

requireValueWithRetry(s.SimpleCtx(), s.T(), 1,
Expand Down

0 comments on commit e94ee56

Please sign in to comment.