From 0fb27542fea6241cea6596786e1b2daa6b05f2c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:19:49 +1100 Subject: [PATCH] build(deps): Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1727) * build(deps): Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * subscription: Fix assert.NotSame param usage --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Gallagher --- exchanges/subscription/list_test.go | 2 +- exchanges/subscription/template_test.go | 2 +- go.mod | 2 +- go.sum | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/exchanges/subscription/list_test.go b/exchanges/subscription/list_test.go index 62df6681..506c995c 100644 --- a/exchanges/subscription/list_test.go +++ b/exchanges/subscription/list_test.go @@ -99,7 +99,7 @@ func TestListClone(t *testing.T) { t.Parallel() l := List{{Channel: TickerChannel}, {Channel: OrderbookChannel}} n := l.Clone() - assert.NotSame(t, n, l, "Slices must not be the same") + assert.NotSame(t, &n, &l, "Slices must not be the same") require.NotEmpty(t, n, "List must not be empty") assert.NotSame(t, n[0], l[0], "Subscriptions must be cloned") assert.Equal(t, n[0], l[0], "Subscriptions should be equal") diff --git a/exchanges/subscription/template_test.go b/exchanges/subscription/template_test.go index 5025b8df..1b55855b 100644 --- a/exchanges/subscription/template_test.go +++ b/exchanges/subscription/template_test.go @@ -135,7 +135,7 @@ func TestExpandTemplates(t *testing.T) { require.NoError(t, err) require.Len(t, got, 1, "Must get back the one sub") assert.Equal(t, "already happy", l[0].QualifiedChannel, "Should get back the one sub") - assert.NotSame(t, got, l, "Should get back a different actual list") + assert.NotSame(t, &got, &l, "Should get back a different actual list") _, err = List{{Channel: "nil"}}.ExpandTemplates(e) assert.ErrorIs(t, err, errInvalidTemplate, "Should get correct error on nil template") diff --git a/go.mod b/go.mod index 5947a733..d47ba1da 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/pquerna/otp v1.4.0 github.com/shopspring/decimal v1.4.0 github.com/spf13/viper v1.19.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/thrasher-corp/gct-ta v0.0.0-20200623072738-f2b55b7f9f41 github.com/thrasher-corp/goose v2.7.0-rc4.0.20191002032028-0f2c2a27abdb+incompatible github.com/thrasher-corp/sqlboiler v1.0.1-0.20191001234224-71e17f37a85e diff --git a/go.sum b/go.sum index e540c598..9965e833 100644 --- a/go.sum +++ b/go.sum @@ -219,8 +219,9 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/thrasher-corp/gct-ta v0.0.0-20200623072738-f2b55b7f9f41 h1:oFqn2u2F6cnHskAlQ3j702hBbEfn+5bbIl90pQz9IPo=