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:
Ryan O'Hara-Reid
2022-04-28 09:49:43 +10:00
committed by GitHub
parent b45fbb80ec
commit b87a0791b0
41 changed files with 500 additions and 222 deletions

View File

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

View File

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