1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-09 13:37:12 +02:00

otlptracegrpc: Check error on Shutdown in tests (#4517)

This commit is contained in:
Robert Pająk 2023-09-18 09:44:52 +02:00 committed by GitHub
parent 84f6b36815
commit 2373e9b1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ func TestNewCollectorOnBadConnection(t *testing.T) {
endpoint := fmt.Sprintf("localhost:%s", collectorPortStr)
ctx := context.Background()
exp := newGRPCExporter(t, ctx, endpoint)
_ = exp.Shutdown(ctx)
require.NoError(t, exp.Shutdown(ctx))
}
func TestNewWithEndpoint(t *testing.T) {
@ -197,7 +197,7 @@ func TestNewWithEndpoint(t *testing.T) {
ctx := context.Background()
exp := newGRPCExporter(t, ctx, mc.endpoint)
_ = exp.Shutdown(ctx)
require.NoError(t, exp.Shutdown(ctx))
}
func TestNewWithHeaders(t *testing.T) {