diff --git a/exchange.go b/exchange.go index c0fe5c65..407a9dc9 100644 --- a/exchange.go +++ b/exchange.go @@ -90,7 +90,7 @@ func ReloadExchange(name string) error { return nil } -// UnloadExchange unloads an exchange by +// UnloadExchange unloads an exchange by name func UnloadExchange(name string) error { nameLower := common.StringToLower(name) diff --git a/exchanges/coinbasepro/coinbasepro_test.go b/exchanges/coinbasepro/coinbasepro_test.go index e4a9f10f..a109faa4 100644 --- a/exchanges/coinbasepro/coinbasepro_test.go +++ b/exchanges/coinbasepro/coinbasepro_test.go @@ -44,7 +44,7 @@ func TestGetFee(t *testing.T) { func TestGetProducts(t *testing.T) { _, err := c.GetProducts() if err != nil { - t.Error("Test failed - GetProducts() error") + t.Errorf("Test failed - Coinbase, GetProducts() Error: %s", err) } } diff --git a/exchanges/coinbasepro/coinbasepro_types.go b/exchanges/coinbasepro/coinbasepro_types.go index 9d87405f..23074876 100644 --- a/exchanges/coinbasepro/coinbasepro_types.go +++ b/exchanges/coinbasepro/coinbasepro_types.go @@ -2,13 +2,13 @@ package coinbasepro // Product holds product information type Product struct { - ID string `json:"id"` - BaseCurrency string `json:"base_currency"` - QuoteCurrency string `json:"quote_currency"` - BaseMinSize float64 `json:"base_min_size,string"` - BaseMaxSize int64 `json:"base_max_size,string"` - QuoteIncrement float64 `json:"quote_increment,string"` - DisplayName string `json:"string"` + ID string `json:"id"` + BaseCurrency string `json:"base_currency"` + QuoteCurrency string `json:"quote_currency"` + BaseMinSize float64 `json:"base_min_size,string"` + BaseMaxSize interface{} `json:"base_max_size"` + QuoteIncrement float64 `json:"quote_increment,string"` + DisplayName string `json:"string"` } // Ticker holds basic ticker information diff --git a/main_test.go b/main_test.go deleted file mode 100644 index 2c0f70d9..00000000 --- a/main_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import "testing" - -func TestSetupBotExchanges(t *testing.T) { - // setupBotExchanges() -} - -func TestMain(t *testing.T) { - // Nothing -} - -func TestAdjustGoMaxProcs(t *testing.T) { - AdjustGoMaxProcs() -} - -func TestHandleInterrupt(t *testing.T) { - HandleInterrupt() -} - -func TestShutdown(t *testing.T) { - // Nothing -} - -func TestSeedExchangeAccountInfo(t *testing.T) { - SeedExchangeAccountInfo(GetAllEnabledExchangeAccountInfo().Data) -}