mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
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] <support@github.com> * subscription: Fix assert.NotSame param usage --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user