mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
asset: bitmask type optimisation (#922)
* asset: basic optim. bitmask * glorious: nits * currency: forgot parralel in testttttt * ticker/orderbook: test fixes * engine/rpcserver: fix and expand tests
This commit is contained in:
@@ -180,7 +180,7 @@ func (w Wrapper) CancelOrder(ctx context.Context, exch, orderid string, cp curre
|
||||
if !cp.IsEmpty() && cp.IsInvalid() {
|
||||
return false, errTestFailed
|
||||
}
|
||||
if a != "" && !a.IsValid() {
|
||||
if a != asset.Empty && !a.IsValid() {
|
||||
return false, errTestFailed
|
||||
}
|
||||
return true, nil
|
||||
|
||||
@@ -105,7 +105,7 @@ func TestWrapper_CancelOrder(t *testing.T) {
|
||||
}
|
||||
|
||||
_, err = testWrapper.CancelOrder(context.Background(),
|
||||
exchName, orderID, cp, "")
|
||||
exchName, orderID, cp, asset.Empty)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user