Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Snible <[email protected]>
  • Loading branch information
esnible committed Jun 30, 2022
1 parent 28d3f88 commit de43533
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/agent/app/reporter/grpc/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,11 @@ func TestReporter_MultitenantEmitBatch(t *testing.T) {
})
defer s.Stop()
conn, err := grpc.Dial(addr.String(), grpc.WithTransportCredentials(insecure.NewCredentials()))
//nolint:staticcheck // don't care about errors
defer conn.Close()
require.NoError(t, err)
defer func() { require.NoError(t, conn.Close()) }()
rep := NewReporter(conn, nil, zap.NewNop())

tm := time.Unix(158, 0)
tm := time.Now()
tests := []struct {
in *jThrift.Batch
err string
Expand Down

0 comments on commit de43533

Please sign in to comment.