Skip to content

Commit

Permalink
relax type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Sep 26, 2023
1 parent 4e6240e commit 3837e94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions managed/services/telemetry/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"context"
"io/fs"
"os"
"reflect"
"testing"
"time"

Expand Down Expand Up @@ -264,7 +263,7 @@ func initMockTelemetrySender(t *testing.T, expectedReport *reporter.ReportReques
var mockTelemetrySender mockSender
mockTelemetrySender.Test(t)
mockTelemetrySender.On("SendTelemetry",
mock.AnythingOfType(reflect.TypeOf(context.TODO()).Name()),
mock.Anything,
mock.MatchedBy(func(report *reporter.ReportRequest) bool {
return matchExpectedReport(report, expectedReport)
}),
Expand Down

0 comments on commit 3837e94

Please sign in to comment.