summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Network/KRPCSpec.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Network/KRPCSpec.hs b/tests/Network/KRPCSpec.hs
index 756c6855..e695a646 100644
--- a/tests/Network/KRPCSpec.hs
+++ b/tests/Network/KRPCSpec.hs
@@ -33,6 +33,15 @@ spec = do
33 query servAddr (Echo int)) 33 query servAddr (Echo int))
34 `shouldReturn` Echo int 34 `shouldReturn` Echo int
35 35
36 it "count transactions properly" $ do
37 (withManager opts servAddr handlers $ runReaderT $ do
38 listen
39 _ <- query servAddr (Echo (0xabcd :: Int))
40 _ <- query servAddr (Echo (0xabcd :: Int))
41 getQueryCount
42 )
43 `shouldReturn` 2
44
36 it "throw timeout exception" $ do 45 it "throw timeout exception" $ do
37 (withManager opts servAddr handlers $ runReaderT $ do 46 (withManager opts servAddr handlers $ runReaderT $ do
38 query servAddr (Echo (0xabcd :: Int)) 47 query servAddr (Echo (0xabcd :: Int))