diff --git a/exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go b/exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go index 9779a037b94..9970373a76f 100644 --- a/exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go +++ b/exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go @@ -359,7 +359,7 @@ func TestCancelledContext(t *testing.T) { }() cancel() err = exporter.Export(ctx, oneRecord) - assert.Error(t, err) + assert.NoError(t, err) assert.Empty(t, mc.GetMetrics()) }