Relocate preliminary payload tests to LowLevelTests module

This commit is contained in:
Joel Stanley 2016-05-24 14:34:23 -07:00
parent ceb9b65433
commit 93e9a92328

View file

@ -30,6 +30,8 @@ lowLevelTests = testGroup "Unit tests of low-level Haskell library"
, testClientRequestNoServer
, testServerAwaitNoClient
, testPayloadLowLevelUnregistered
, testPayload
]
]
dummyMeta :: M.Map ByteString ByteString
@ -265,8 +267,9 @@ testPayloadServer = do
cancelledPtr <- malloc
opRecvCloseServer respOps 0 cancelledPtr
opSendMessage respOps 1 respbb
B.useAsCString "ok" $ \detailsStr ->
opSendStatusServer respOps 2 0 (MetadataKeyValPtr nullPtr)
GrpcStatusOk "ok"
GrpcStatusOk detailsStr
serverCall <- peek serverCallPtr
respBatchError <- grpcCallStartBatch serverCall respOps 3
(tag 103) reserved