diff --git a/client/chain/markets_assistant_test.go b/client/chain/markets_assistant_test.go index 31778e70..b8da6e01 100644 --- a/client/chain/markets_assistant_test.go +++ b/client/chain/markets_assistant_test.go @@ -2,12 +2,13 @@ package chain import ( "context" - "github.com/InjectiveLabs/sdk-go/client/common" "net/http" "net/http/httptest" "strings" "testing" + "github.com/InjectiveLabs/sdk-go/client/common" + "github.com/InjectiveLabs/sdk-go/client/exchange" derivativeExchangePB "github.com/InjectiveLabs/sdk-go/exchange/derivative_exchange_rpc/pb" spotExchangePB "github.com/InjectiveLabs/sdk-go/exchange/spot_exchange_rpc/pb" @@ -18,7 +19,7 @@ import ( func TestMarketAssistantCreationUsingMarketsFromExchange(t *testing.T) { httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - w.Write([]byte("[]")) + _, _ = w.Write([]byte("[]")) })) defer httpServer.Close() @@ -89,7 +90,7 @@ func TestMarketAssistantCreationUsingMarketsFromExchange(t *testing.T) { func TestMarketAssistantCreationWithAllTokens(t *testing.T) { httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - w.Write([]byte("[]")) + _, _ = w.Write([]byte("[]")) })) defer httpServer.Close() diff --git a/client/core/tokens_file_loader_test.go b/client/core/tokens_file_loader_test.go index dd08d601..8fbc27cd 100644 --- a/client/core/tokens_file_loader_test.go +++ b/client/core/tokens_file_loader_test.go @@ -3,10 +3,11 @@ package core import ( "encoding/json" "fmt" - "gotest.tools/v3/assert" "net/http" "net/http/httptest" "testing" + + "gotest.tools/v3/assert" ) func TestLoadTokensFromUrl(t *testing.T) { @@ -47,7 +48,7 @@ func TestLoadTokensFromUrl(t *testing.T) { httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - w.Write(metadataString) + _, _ = w.Write(metadataString) })) defer httpServer.Close() diff --git a/client/exchange/exchange_test_support.go b/client/exchange/exchange_test_support.go index ce5822cc..9c28bd32 100644 --- a/client/exchange/exchange_test_support.go +++ b/client/exchange/exchange_test_support.go @@ -3,6 +3,7 @@ package exchange import ( "context" "errors" + "github.com/InjectiveLabs/sdk-go/client/common" accountPB "github.com/InjectiveLabs/sdk-go/exchange/accounts_rpc/pb"