1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

[chore]: enable suite-extra-assert-call rule from testifylint (#5833)

#### Description

Testifylint is a linter that provides best practices with the use of
testify.

This PR enables
[suite-extra-assert-call](https://github.com/Antonboom/testifylint?tab=readme-ov-file#suite-extra-assert-call)
rule from [testifylint](https://github.com/Antonboom/testifylint)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-09-23 08:56:45 +02:00
committed by GitHub
parent 063239fa37
commit 561bd49e6c
6 changed files with 45 additions and 46 deletions

View File

@@ -198,7 +198,7 @@ func (ts *readerTestSuite) TestShutdownBeforeRegister() {
func (ts *readerTestSuite) TestCollectNilResourceMetricError() {
ts.Reader = ts.Factory()
ctx := context.Background()
ts.Assert().Error(ts.Reader.Collect(ctx, nil))
ts.Error(ts.Reader.Collect(ctx, nil))
}
var testScopeMetricsA = metricdata.ScopeMetrics{