mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 15:11:03 +00:00
linters: Exclude govet shadow check on exchange instances (#2097)
* Linters: Exclude govet shadow check on e in tests
* Linters: Remove nolint rule for new(Exchange) in tests
Replay with:
```
perl -pi -e 's{(\se\s:=\s.*?)\s*//nolint:govet // Intentional shadow.*}{$1}' **/*_test.go
```
This commit is contained in:
@@ -741,7 +741,7 @@ func TestWsOrderbook2(t *testing.T) {
|
||||
func TestWsOrderUpdate(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
e := new(Exchange) //nolint:govet // Intentional shadow
|
||||
e := new(Exchange)
|
||||
require.NoError(t, testexch.Setup(e), "Test instance Setup must not error")
|
||||
testexch.FixtureToDataHandler(t, "testdata/wsMyOrders.json", e.wsHandleData)
|
||||
close(e.Websocket.DataHandler)
|
||||
|
||||
Reference in New Issue
Block a user