mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 23:16:53 +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:
@@ -130,7 +130,7 @@ func TestSqlDataToTrade(t *testing.T) {
|
||||
|
||||
func TestTradeToSQLData(t *testing.T) {
|
||||
t.Parallel()
|
||||
cp := currency.NewPair(currency.BTC, currency.USD)
|
||||
cp := currency.NewBTCUSD()
|
||||
sqlData, err := tradeToSQLData(Data{
|
||||
Timestamp: time.Now(),
|
||||
Exchange: "test!",
|
||||
|
||||
Reference in New Issue
Block a user