Skip to content

Commit 220b191

Browse files
committed
Improved batch test
1 parent 1ade31a commit 220b191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestSuite.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ testBatch = sortBy (compare `on` rspToIdString) <$> response @?= Just expected
123123
where expected = [nullIdErrRsp (-32600), rsp i1 2, rsp i2 4]
124124
where rsp i x = defaultRsp `id'` Just i `result` A.Number x
125125
response = fromArray =<< (removeErrMsg <$> callSubtractMethods (array requests))
126-
requests = [rq i1 10 8, rq i2 24 20, defaultRq `version` Just (A.String "abc")]
127-
where rq i x y = defaultRq `id'` Just i `params` toArgs x y
126+
requests = [rq (Just i1) 10 8, rq (Just i2) 24 20, rq Nothing 15 1, defaultRq `version` Just (A.String "abc")]
127+
where rq i x y = defaultRq `id'` i `params` toArgs x y
128128
toArgs :: Int -> Int -> Maybe A.Value
129129
toArgs x y = Just $ A.object ["x" .= x, "y" .= y]
130130
i1 = A.Number 1

0 commit comments

Comments
 (0)