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:
parent
84f6b36815
commit
2373e9b1e9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user