Skip to content

Commit

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

out, err := client.SendStream(context.Background(), testvalidate.BadStreamRequest)
if err != nil {
t.Fatal(err)
}

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

stream, _ := s.Client.PingStream(ctx)
stream.Send(&testpb.PingStreamRequest{})
err := stream.Send(&testpb.PingStreamRequest{})
if err != nil {
s.T().Fatal(err)
}
cancel()

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

0 comments on commit 16aeb8b

Please sign in to comment.