Browse Source

QuoteSource client test: send more than one tick in separate thread

master
Denis Tereshkin 9 years ago
parent
commit
ea70ebe262
  1. 4
      test/TestQuoteSourceClient.hs

4
test/TestQuoteSourceClient.hs

@ -52,9 +52,7 @@ testTickStream = testCase "QuoteSource clients receives ticks" $ withContext (\c
timestamp = UTCTime (fromGregorian 2016 9 27) 16000, timestamp = UTCTime (fromGregorian 2016 9 27) 16000,
value = 1000, value = 1000,
volume = 1} volume = 1}
yield forkIO $ writeChan chan (Just tick)
writeChan chan (Just tick)
yield
recvdTick <- readChan clientChan recvdTick <- readChan clientChan
tick @=? recvdTick))) tick @=? recvdTick)))

Loading…
Cancel
Save