Asset update to fix minor stutter (#316)

This commit is contained in:
Ryan O'Hara-Reid
2019-06-17 09:02:07 +10:00
committed by Adrian Gallagher
parent b901c4b670
commit 20c24601fb
87 changed files with 976 additions and 966 deletions

View File

@@ -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)