Skip to content

Commit

Permalink
Add back cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Oct 16, 2024
1 parent bc74c0b commit 201abf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestUnaryServerInterceptor(t *testing.T) {
var buf bytes.Buffer
ctx := Context(context.Background(), WithOutput(&buf), WithFormat(FormatJSON))
logInterceptor := UnaryServerInterceptor(ctx, c.options...)
cli, _ := testsvc.SetupGRPC(t,
cli, stop := testsvc.SetupGRPC(t,
testsvc.WithServerOptions(grpc.UnaryInterceptor(logInterceptor)),
testsvc.WithUnaryFunc(c.method))

Expand All @@ -75,6 +75,7 @@ func TestUnaryServerInterceptor(t *testing.T) {
require.NoError(t, err)
}
assert.Regexp(t, regexp.MustCompile(strings.ReplaceAll(c.expected, "\n", "\\n")), buf.String())
stop()
})
}
}
Expand Down

0 comments on commit 201abf0

Please sign in to comment.