Browse Source

TestBrokerServer: fix irrefutable pattern error

master
Denis Tereshkin 9 years ago
parent
commit
c61a365244
  1. 2
      test/TestBrokerServer.hs

2
test/TestBrokerServer.hs

@ -227,8 +227,8 @@ testBrokerServerGetNotifications = testCaseSteps "Broker Server: notifications r
case resp of case resp of
Just (ResponseNotifications ns) -> do Just (ResponseNotifications ns) -> do
length ns @=? 3 length ns @=? 3
let (TradeNotification newtrade) = head ns
let (OrderNotification oid newstate) = ns !! 1 let (OrderNotification oid newstate) = ns !! 1
let (TradeNotification newtrade) = ns !! 2
orderId @=? oid orderId @=? oid
Executed @=? newstate Executed @=? newstate
trade @=? newtrade trade @=? newtrade

Loading…
Cancel
Save