File tree 2 files changed +2
-2
lines changed
exporters/otlp/otlpmetric
otlpmetrichttp/internal/retry
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ func TestConfig(t *testing.T) {
236
236
ctx := context .Background ()
237
237
t .Cleanup (func () { require .NoError (t , exp .Shutdown (ctx )) })
238
238
err := exp .Export (ctx , & metricdata.ResourceMetrics {})
239
- assert .ErrorContains (t , err , context . DeadlineExceeded . Error () )
239
+ assert .ErrorContains (t , err , " DeadlineExceeded" )
240
240
})
241
241
242
242
t .Run ("WithCustomUserAgent" , func (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ func TestMaxElapsedTime(t *testing.T) {
200
200
ctx := context .Background ()
201
201
assert .Contains (t , reqFunc (ctx , func (context.Context ) error {
202
202
return assert .AnError
203
- }).Error (), "max retry time elapsed: " )
203
+ }).Error (), "max retry time" )
204
204
}
205
205
206
206
func TestRetryNotEnabled (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments