mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 07:26:47 +00:00
Engine/ExchangeManager: Return error for method GetExchangeByName (#760)
* engine: Add error returns * engine: after merge fixes * engine: remove interface * linter: fix shadow declarations * engine: fix tests * niterinos: fixed * GLORIOUS NITS!
This commit is contained in:
@@ -162,7 +162,11 @@ func TestGetAuthAPISupportedExchanges(t *testing.T) {
|
||||
t.Fatal("Unexpected result", result)
|
||||
}
|
||||
|
||||
exch := e.ExchangeManager.GetExchangeByName(testExchange)
|
||||
exch, err := e.ExchangeManager.GetExchangeByName(testExchange)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
b := exch.GetBase()
|
||||
b.API.AuthenticatedWebsocketSupport = true
|
||||
b.API.Credentials.Key = "test"
|
||||
|
||||
Reference in New Issue
Block a user