From 62e36e676563605a6d2203250c086c91a3b4f1af Mon Sep 17 00:00:00 2001 From: zhyChesterCheung Date: Sun, 20 Jun 2021 01:48:18 +0800 Subject: [PATCH] fix err occurs in TestCancelledContext --- exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }