mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-26 21:19:43 +01:00
Merge branch 'master' into joel/low-level-testing (fixing borked rebase, sorry!)
This commit is contained in:
commit
378d92efcf
1 changed files with 17 additions and 16 deletions
|
@ -99,8 +99,8 @@ testClientRequestNoServer =
|
|||
reqResult @?= (Left GRPCIOTimeout)
|
||||
|
||||
testServerAwaitNoClient :: TestTree
|
||||
testServerAwaitNoClient =
|
||||
grpcTest "Server - registered call handler timeout" $ \grpc -> do
|
||||
testServerAwaitNoClient = testCase "server wait times out when no client " $ do
|
||||
withGRPC $ \grpc -> do
|
||||
let conf = (ServerConfig "localhost" 50051 [("/foo", "localhost", Normal)])
|
||||
withServer grpc conf $ \server -> do
|
||||
let method = head (registeredMethods server)
|
||||
|
@ -110,7 +110,8 @@ testServerAwaitNoClient =
|
|||
|
||||
testServerUnregisteredAwaitNoClient :: TestTree
|
||||
testServerUnregisteredAwaitNoClient =
|
||||
grpcTest "Server - unregistered call handler timeout" $ \grpc -> do
|
||||
testCase "server wait times out when no client -- unregistered method " $ do
|
||||
withGRPC $ \grpc -> do
|
||||
let conf = ServerConfig "localhost" 50051 []
|
||||
withServer grpc conf $ \server -> do
|
||||
result <- serverHandleNormalCall server 10 M.empty $
|
||||
|
|
Loading…
Reference in a new issue