Commit df6b05f 1 parent d3a6d00 commit df6b05f Copy full SHA for df6b05f
File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ func TestTrace(t *testing.T) {
305
305
ctrl .Trace (tt .traces )
306
306
tp .ForceFlush (context .Background ())
307
307
spans := exporter .GetSpans ()
308
- assert .Equal (t , len (tt .expected ), len ( spans ))
308
+ assert .Len (t , spans , len (tt .expected ))
309
309
310
310
// span contexts get modified by exporter, update expected with output
311
311
for i , span := range spans {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ require (
22
22
github.com/Abirdcfly/dupword v0.1.3 // indirect
23
23
github.com/Antonboom/errname v1.1.0 // indirect
24
24
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
26
26
github.com/BurntSushi/toml v1.4.1-0.20241028111116-b7406c026f5a // indirect
27
27
github.com/Crocmagnon/fatcontext v0.7.1 // indirect
28
28
github.com/Djarvur/go-err113 v0.1.0 // indirect
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ github.com/Antonboom/errname v1.1.0 h1:A+ucvdpMwlo/myWrkHEUEBWc/xuXdud23S8tmTb/o
13
13
github.com/Antonboom/errname v1.1.0 /go.mod h1:O1NMrzgUcVBGIfi3xlVuvX8Q/VP/73sseCaAppfjqZw =
14
14
github.com/Antonboom/nilnil v1.0.1 h1:C3Tkm0KUxgfO4Duk3PM+ztPncTFlOf0b2qadmS0s4xs =
15
15
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 =
18
18
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg =
19
19
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c /go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E =
20
20
github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ func TestSpanAddLinkLimit(t *testing.T) {
391
391
392
392
func TestSpanLinkAttrLimit (t * testing.T ) {
393
393
nInt := len (tAttrs )
394
- require .GreaterOrEqual (t , len ( tAttrs ) , 0 )
394
+ require .GreaterOrEqual (t , nInt , 0 )
395
395
n := uint32 (nInt ) // nolint: gosec // Bound checked.
396
396
397
397
tests := []struct {
@@ -523,7 +523,7 @@ func TestAddEventLimit(t *testing.T) {
523
523
524
524
func TestAddEventAttrLimit (t * testing.T ) {
525
525
nInt := len (tAttrs )
526
- require .GreaterOrEqual (t , len ( tAttrs ) , 0 )
526
+ require .GreaterOrEqual (t , nInt , 0 )
527
527
n := uint32 (nInt ) // nolint: gosec // Bound checked.
528
528
529
529
tests := []struct {
@@ -612,7 +612,7 @@ func TestSpanSetAttributes(t *testing.T) {
612
612
613
613
func TestSpanAttributeLimits (t * testing.T ) {
614
614
nInt := len (tAttrs )
615
- require .GreaterOrEqual (t , len ( tAttrs ) , 0 )
615
+ require .GreaterOrEqual (t , nInt , 0 )
616
616
n := uint32 (nInt ) // nolint: gosec // Bound checked.
617
617
618
618
tests := []struct {
You can’t perform that action at this time.
0 commit comments