Skip to content

Commit df6b05f

Browse files
chore(deps): update module github.com/antonboom/testifylint to v1.6.0 (#1980)
* chore(deps): update module github.com/antonboom/testifylint to v1.6.0 * chore(deps): update module github.com/antonboom/testifylint to v1.6.0 * Fix lint error * Lint fixes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tyler Yahn <[email protected]> Co-authored-by: Tyler Yahn <[email protected]>
1 parent d3a6d00 commit df6b05f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

internal/pkg/opentelemetry/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func TestTrace(t *testing.T) {
305305
ctrl.Trace(tt.traces)
306306
tp.ForceFlush(context.Background())
307307
spans := exporter.GetSpans()
308-
assert.Equal(t, len(tt.expected), len(spans))
308+
assert.Len(t, spans, len(tt.expected))
309309

310310
// span contexts get modified by exporter, update expected with output
311311
for i, span := range spans {

internal/tools/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/Abirdcfly/dupword v0.1.3 // indirect
2323
github.com/Antonboom/errname v1.1.0 // indirect
2424
github.com/Antonboom/nilnil v1.0.1 // indirect
25-
github.com/Antonboom/testifylint v1.5.2 // indirect
25+
github.com/Antonboom/testifylint v1.6.0 // indirect
2626
github.com/BurntSushi/toml v1.4.1-0.20241028111116-b7406c026f5a // indirect
2727
github.com/Crocmagnon/fatcontext v0.7.1 // indirect
2828
github.com/Djarvur/go-err113 v0.1.0 // indirect

internal/tools/go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ github.com/Antonboom/errname v1.1.0 h1:A+ucvdpMwlo/myWrkHEUEBWc/xuXdud23S8tmTb/o
1313
github.com/Antonboom/errname v1.1.0/go.mod h1:O1NMrzgUcVBGIfi3xlVuvX8Q/VP/73sseCaAppfjqZw=
1414
github.com/Antonboom/nilnil v1.0.1 h1:C3Tkm0KUxgfO4Duk3PM+ztPncTFlOf0b2qadmS0s4xs=
1515
github.com/Antonboom/nilnil v1.0.1/go.mod h1:CH7pW2JsRNFgEh8B2UaPZTEPhCMuFowP/e8Udp9Nnb0=
16-
github.com/Antonboom/testifylint v1.5.2 h1:4s3Xhuv5AvdIgbd8wOOEeo0uZG7PbDKQyKY5lGoQazk=
17-
github.com/Antonboom/testifylint v1.5.2/go.mod h1:vxy8VJ0bc6NavlYqjZfmp6EfqXMtBgQ4+mhCojwC1P8=
16+
github.com/Antonboom/testifylint v1.6.0 h1:6rdILVPt4+rqcvhid8w9wJNynKLUgqHNpFyM67UeXyc=
17+
github.com/Antonboom/testifylint v1.6.0/go.mod h1:k+nEkathI2NFjKO6HvwmSrbzUcQ6FAnbZV+ZRrnXPLI=
1818
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg=
1919
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
2020
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=

sdk/span_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func TestSpanAddLinkLimit(t *testing.T) {
391391

392392
func TestSpanLinkAttrLimit(t *testing.T) {
393393
nInt := len(tAttrs)
394-
require.GreaterOrEqual(t, len(tAttrs), 0)
394+
require.GreaterOrEqual(t, nInt, 0)
395395
n := uint32(nInt) // nolint: gosec // Bound checked.
396396

397397
tests := []struct {
@@ -523,7 +523,7 @@ func TestAddEventLimit(t *testing.T) {
523523

524524
func TestAddEventAttrLimit(t *testing.T) {
525525
nInt := len(tAttrs)
526-
require.GreaterOrEqual(t, len(tAttrs), 0)
526+
require.GreaterOrEqual(t, nInt, 0)
527527
n := uint32(nInt) // nolint: gosec // Bound checked.
528528

529529
tests := []struct {
@@ -612,7 +612,7 @@ func TestSpanSetAttributes(t *testing.T) {
612612

613613
func TestSpanAttributeLimits(t *testing.T) {
614614
nInt := len(tAttrs)
615-
require.GreaterOrEqual(t, len(tAttrs), 0)
615+
require.GreaterOrEqual(t, nInt, 0)
616616
n := uint32(nInt) // nolint: gosec // Bound checked.
617617

618618
tests := []struct {

0 commit comments

Comments
 (0)