Skip to content

Commit 3f1666c

Browse files
fix(deps): update module github.com/stretchr/testify to v1.10.0 (#15090)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Paul Rogers <paul.rogers@grafana.com>
1 parent 2332973 commit 3f1666c

21 files changed

+743
-327
lines changed

‎go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ require (
9292
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
9393
github.com/sony/gobreaker/v2 v2.0.0
9494
github.com/spf13/afero v1.11.0
95-
github.com/stretchr/testify v1.9.0
95+
github.com/stretchr/testify v1.10.0
9696
github.com/uber/jaeger-client-go v2.30.0+incompatible
9797
github.com/xdg-go/scram v1.1.2
9898
go.etcd.io/bbolt v1.3.11

‎go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2594,8 +2594,9 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o
25942594
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
25952595
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
25962596
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
2597-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
25982597
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2598+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
2599+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
25992600
github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62/go.mod h1:qUzPVlSj2UgxJkVbH0ZwuuiR46U8RBMDT5KLY78Ifpw=
26002601
github.com/tedsuo/ifrit v0.0.0-20191009134036-9a97d0632f00/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
26012602
github.com/tencentcloud/tencentcloud-sdk-go v1.0.162/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=

‎pkg/logproto/timeseries_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestPreallocTimeseriesSliceFromPool(t *testing.T) {
3232
first := PreallocTimeseriesSliceFromPool()
3333
second := PreallocTimeseriesSliceFromPool()
3434

35-
assert.NotSame(t, first, second)
35+
assert.NotSame(t, &first, &second)
3636
})
3737

3838
t.Run("instance is cleaned before reusing", func(t *testing.T) {
@@ -50,11 +50,12 @@ func TestTimeseriesFromPool(t *testing.T) {
5050
first := TimeseriesFromPool()
5151
second := TimeseriesFromPool()
5252

53-
assert.NotSame(t, first, second)
53+
assert.NotSame(t, &first, &second)
5454
})
5555

5656
t.Run("instance is cleaned before reusing", func(t *testing.T) {
5757
ts := TimeseriesFromPool()
58+
5859
ts.Labels = []LabelAdapter{{Name: "foo", Value: "bar"}}
5960
ts.Samples = []LegacySample{{Value: 1, TimestampMs: 2}}
6061
ReuseTimeseries(ts)

‎pkg/push/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.23.3
66

77
require (
88
github.com/gogo/protobuf v1.3.2
9-
github.com/stretchr/testify v1.9.0
9+
github.com/stretchr/testify v1.10.0
1010
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8
1111
google.golang.org/grpc v1.68.0
1212
)

‎pkg/push/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
1717
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
1818
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1919
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
20-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
21-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
20+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
21+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2222
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
2323
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
2424
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

‎pkg/util/mapmerge_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ func TestCopy(t *testing.T) {
3737

3838
cp := CopyMap(base)
3939
require.EqualValues(t, base, cp)
40-
require.NotSame(t, base, cp)
40+
require.NotSame(t, &base, &cp)
4141
}
4242

4343
func TestNilCopy(t *testing.T) {
4444
var base map[string]string
4545

4646
cp := CopyMap(base)
4747
require.EqualValues(t, base, cp)
48-
require.NotSame(t, base, cp)
48+
require.NotSame(t, &base, &cp)
4949
}
5050

5151
func TestNilBase(t *testing.T) {

‎vendor/github.com/stretchr/testify/assert/assertion_compare.go

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vendor/github.com/stretchr/testify/assert/assertion_format.go

Lines changed: 30 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vendor/github.com/stretchr/testify/assert/assertion_forward.go

Lines changed: 60 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)