diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Network/KRPCSpec.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Network/KRPCSpec.hs b/tests/Network/KRPCSpec.hs index e695a646..0a6dc8fb 100644 --- a/tests/Network/KRPCSpec.hs +++ b/tests/Network/KRPCSpec.hs | |||
@@ -25,6 +25,13 @@ opts = def { optQueryTimeout = 1 } | |||
25 | 25 | ||
26 | spec :: Spec | 26 | spec :: Spec |
27 | spec = do | 27 | spec = do |
28 | describe "manager" $ do | ||
29 | it "is active until closeManager called" $ do | ||
30 | m <- newManager opts servAddr [] | ||
31 | isActive m `shouldReturn` True | ||
32 | closeManager m | ||
33 | isActive m `shouldReturn` False | ||
34 | |||
28 | describe "query" $ do | 35 | describe "query" $ do |
29 | it "run handlers" $ do | 36 | it "run handlers" $ do |
30 | let int = 0xabcd :: Int | 37 | let int = 0xabcd :: Int |