diff --git a/.golangci.yml b/.golangci.yml index f56613831e1..2ce610600a8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -247,10 +247,8 @@ linters-settings: testifylint: enable-all: true disable: - - compares - expected-actual - float-compare - formatter - go-require - - negative-positive - require-error diff --git a/instrumentation/runtime/runtime_test.go b/instrumentation/runtime/runtime_test.go index 78b3b52b784..67df9768580 100644 --- a/instrumentation/runtime/runtime_test.go +++ b/instrumentation/runtime/runtime_test.go @@ -182,7 +182,7 @@ func assertNonZeroValues(t *testing.T, sm metricdata.ScopeMetrics) { switch a := m.Data.(type) { case metricdata.Sum[int64]: for _, dp := range a.DataPoints { - assert.True(t, dp.Value > 0, fmt.Sprintf("Metric %q should have a non-zero value for point with attributes %+v", m.Name, dp.Attributes)) + assert.Positive(t, dp.Value, fmt.Sprintf("Metric %q should have a non-zero value for point with attributes %+v", m.Name, dp.Attributes)) } default: t.Fatalf("unexpected data type %v", a) diff --git a/propagators/b3/b3_propagator_test.go b/propagators/b3/b3_propagator_test.go index f111d38247b..a0026e0f413 100644 --- a/propagators/b3/b3_propagator_test.go +++ b/propagators/b3/b3_propagator_test.go @@ -301,7 +301,7 @@ func TestB3EncodingOperations(t *testing.T) { for i, e := range encodings { for j := i + 1; j < i+len(encodings); j++ { o := encodings[j%len(encodings)] - assert.False(t, e == o, "%v == %v", e, o) + assert.NotEqual(t, e, o, "%v == %v", e, o) } }