mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
CoinbasePro: Skip specific tests due to API deprecation (#1649)
* CoinbasePro: Skip tests due to API deprecation * CoinbasePro: Skip more tests
This commit is contained in:
@@ -606,9 +606,10 @@ var unsupportedAssets = []asset.Item{
|
||||
var unsupportedExchangeNames = []string{
|
||||
"testexch",
|
||||
"alphapoint",
|
||||
"bitflyer", // Bitflyer has many "ErrNotYetImplemented, which is true, but not what we care to test for here
|
||||
"btse", // TODO rm once timeout issues resolved
|
||||
"poloniex", // outdated API // TODO rm once updated
|
||||
"bitflyer", // Bitflyer has many "ErrNotYetImplemented, which is true, but not what we care to test for here
|
||||
"btse", // TODO rm once timeout issues resolved
|
||||
"poloniex", // outdated API // TODO rm once updated
|
||||
"coinbasepro", // outdated API // TODO rm once updated
|
||||
}
|
||||
|
||||
// cryptoChainPerExchange holds the deposit address chain per exchange
|
||||
|
||||
@@ -357,7 +357,8 @@ func TestSettingsPrint(t *testing.T) {
|
||||
}
|
||||
|
||||
var unsupportedDefaultConfigExchanges = []string{
|
||||
"poloniex", // poloniex has dropped support for the API GCT has implemented //TODO: drop this when supported
|
||||
"poloniex", // poloniex has dropped support for the API GCT has implemented //TODO: drop this when supported
|
||||
"coinbasepro", // deprecated API. TODO: Remove this when the Coinbase update is merged
|
||||
}
|
||||
|
||||
func TestGetDefaultConfigurations(t *testing.T) {
|
||||
|
||||
@@ -67,6 +67,8 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
func TestGetProducts(t *testing.T) {
|
||||
t.Skip("API is deprecated")
|
||||
|
||||
_, err := c.GetProducts(context.Background())
|
||||
if err != nil {
|
||||
t.Errorf("Coinbase, GetProducts() Error: %s", err)
|
||||
@@ -74,6 +76,8 @@ func TestGetProducts(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetOrderbook(t *testing.T) {
|
||||
t.Skip("API is deprecated")
|
||||
|
||||
_, err := c.GetOrderbook(context.Background(), testPair.String(), 2)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
@@ -85,6 +89,8 @@ func TestGetOrderbook(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetTicker(t *testing.T) {
|
||||
t.Skip("API is deprecated")
|
||||
|
||||
_, err := c.GetTicker(context.Background(), testPair.String())
|
||||
if err != nil {
|
||||
t.Error("GetTicker() error", err)
|
||||
@@ -99,6 +105,8 @@ func TestGetTrades(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetHistoricRatesGranularityCheck(t *testing.T) {
|
||||
t.Skip("API is deprecated")
|
||||
|
||||
end := time.Now()
|
||||
start := end.Add(-time.Hour * 2)
|
||||
_, err := c.GetHistoricCandles(context.Background(),
|
||||
@@ -109,6 +117,8 @@ func TestGetHistoricRatesGranularityCheck(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCoinbasePro_GetHistoricCandlesExtended(t *testing.T) {
|
||||
t.Skip("API is deprecated")
|
||||
|
||||
start := time.Unix(1546300800, 0)
|
||||
end := time.Unix(1577836799, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user