Skip to content

Commit ff8192c

Browse files
committed
Minor cleanup
1 parent bf3358f commit ff8192c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/TestSuite.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ main = defaultMain [ testCase "encode error" testEncodeError
4949
, testCase "parallelize tasks" testParallelizingTasks ]
5050

5151
testEncodeError :: Assertion
52-
testEncodeError = (fromByteString $ encode $ toJSON err) @?= Just testError
52+
testEncodeError = fromByteString (encode $ toJSON err) @?= Just testError
5353
where err = rpcError (-1) "error"
5454
testError = TestRpcError (-1) "error" Nothing
5555

5656
testEncodeErrorWithData :: Assertion
57-
testEncodeErrorWithData = (fromByteString $ encode $ toJSON err) @?= Just testError
57+
testEncodeErrorWithData = fromByteString (encode $ toJSON err) @?= Just testError
5858
where err = rpcErrorWithData 1 "my message" errorData
5959
testError = TestRpcError 1 "my message" $ Just $ toJSON errorData
60-
errorData = (['\x03BB'], True, ())
60+
errorData = ('\x03BB', [True], ())
6161

6262
testInvalidJson :: Assertion
6363
testInvalidJson = checkResponseWithSubtract "5" idNull (-32700)
@@ -169,8 +169,8 @@ testParallelizingTasks = assert $ do
169169
a <- actual
170170
let ids = map rspId a
171171
vals = map fromResult a
172-
return $ (equalContents ids $ map idNumber [1, 2]) &&
173-
(equalContents vals ["A", "B"])
172+
return $ equalContents ids (map idNumber [1, 2]) &&
173+
equalContents vals ["A", "B"]
174174
where actual = (fromJust . fromByteString . fromJust) <$> (flip (callWithBatchStrategy parallelize) input =<< methods)
175175
input = encode [ lockRequest 1, unlockRequest (String "A")
176176
, unlockRequest (String "B"), lockRequest 2]

0 commit comments

Comments
 (0)