mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Tests: Use currency.NewBTCUSD and NewBTCUSDT (#1895)
* Tests: Use currency.NewUSD and NewUSDT Simple refactor to use the provided shortcut methods * Github: Add CI check to ensure NewPair not used Add a step to ensure NewPair(BTC, USD*) isn't used
This commit is contained in:
@@ -173,7 +173,7 @@ func TestExchange_CancelOrder(t *testing.T) {
|
||||
t.Skip("no exchange configured test skipped")
|
||||
}
|
||||
t.Parallel()
|
||||
cp := currency.NewPair(currency.BTC, currency.USD)
|
||||
cp := currency.NewBTCUSD()
|
||||
a := asset.Spot
|
||||
_, err := exchangeTest.CancelOrder(t.Context(),
|
||||
exchName, orderID, cp, a)
|
||||
|
||||
@@ -78,7 +78,7 @@ func TestWrapper_AccountInformation(t *testing.T) {
|
||||
|
||||
func TestWrapper_CancelOrder(t *testing.T) {
|
||||
t.Parallel()
|
||||
cp := currency.NewPair(currency.BTC, currency.USD)
|
||||
cp := currency.NewBTCUSD()
|
||||
_, err := testWrapper.CancelOrder(t.Context(),
|
||||
exchName, orderID, cp, assetType)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user