Bugfix: Orderbook locks (#666)

This commit is contained in:
Scott
2021-04-29 11:27:19 +10:00
committed by GitHub
parent b7f111a1a4
commit 36a4bf4c1f
6 changed files with 46 additions and 40 deletions

View File

@@ -81,16 +81,6 @@ func TestHandleData(t *testing.T) {
t.Error("Expected order to be modified to Active")
}
err = b.WebsocketDataHandler(exchName, &order.Cancel{
Exchange: fakePassExchange,
ID: orderID,
})
if err != nil {
t.Error(err)
}
if origOrder.Status != order.Cancelled {
t.Error("Expected order status to be cancelled")
}
// Send some gibberish
err = b.WebsocketDataHandler(exchName, order.Stop)
if err != nil {