mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
Asset update to fix minor stutter (#316)
This commit is contained in:
committed by
Adrian Gallagher
parent
b901c4b670
commit
20c24601fb
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/thrasher-/gocryptotrader/currency"
|
||||
"github.com/thrasher-/gocryptotrader/exchanges/assets"
|
||||
"github.com/thrasher-/gocryptotrader/exchanges/asset"
|
||||
"github.com/thrasher-/gocryptotrader/exchanges/orderbook"
|
||||
)
|
||||
|
||||
@@ -161,7 +161,7 @@ func TestInsertingSnapShots(t *testing.T) {
|
||||
|
||||
snapShot1.Asks = asks
|
||||
snapShot1.Bids = bids
|
||||
snapShot1.AssetType = assets.AssetTypeSpot
|
||||
snapShot1.AssetType = asset.Spot
|
||||
snapShot1.Pair = currency.NewPairFromString("BTCUSD")
|
||||
|
||||
wsTest.Websocket.Orderbook.LoadSnapshot(&snapShot1, "ExchangeTest", false)
|
||||
@@ -197,7 +197,7 @@ func TestInsertingSnapShots(t *testing.T) {
|
||||
|
||||
snapShot2.Asks = asks
|
||||
snapShot2.Bids = bids
|
||||
snapShot2.AssetType = assets.AssetTypeSpot
|
||||
snapShot2.AssetType = asset.Spot
|
||||
snapShot2.Pair = currency.NewPairFromString("LTCUSD")
|
||||
|
||||
wsTest.Websocket.Orderbook.LoadSnapshot(&snapShot2, "ExchangeTest", false)
|
||||
@@ -265,7 +265,7 @@ func TestUpdate(t *testing.T) {
|
||||
LTCUSDPAIR,
|
||||
time.Now(),
|
||||
"ExchangeTest",
|
||||
assets.AssetTypeSpot)
|
||||
asset.Spot)
|
||||
|
||||
if err != nil {
|
||||
t.Error("test failed - OrderbookUpdate error", err)
|
||||
@@ -301,7 +301,7 @@ func TestUpdate(t *testing.T) {
|
||||
BTCUSDPAIR,
|
||||
time.Now(),
|
||||
"ExchangeTest",
|
||||
assets.AssetTypeSpot)
|
||||
asset.Spot)
|
||||
|
||||
if err != nil {
|
||||
t.Error("test failed - OrderbookUpdate error", err)
|
||||
|
||||
Reference in New Issue
Block a user