Skip to content

Commit 8d35289

Browse files
Remove redundant tests
1 parent de6adf1 commit 8d35289

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

hydra-node/test/Hydra/API/ClientInputSpec.hs

-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ spec = parallel $ do
3434
Success{} -> property True
3535
Error e -> counterexample (toString $ toText e) $ property False
3636

37-
prop "accepts raw CBOR-base16-encoded transactions" $ do
38-
forAll (arbitrary @Tx) $ \tx ->
39-
let cborHex = decodeUtf8 $ Base16.encode $ serialize' $ toLedgerTx tx
40-
in case fromJSON @Tx (String cborHex) of
41-
Success{} -> True
42-
Error e -> error (toText e)
43-
4437
settings :: Settings
4538
settings =
4639
defaultSettings

hydra-node/test/Hydra/API/HTTPServerSpec.hs

-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ spec = do
5656

5757
apiServerSpec
5858
describe "SubmitTxRequest accepted tx formats" $ do
59-
prop "accepts Base16 cbor encoded bytestring" $
60-
forAll (arbitrary @Tx) $ \tx ->
61-
let json = String $ decodeUtf8 $ Base16.encode $ serialize' (toLedgerTx tx)
62-
in case fromJSON @(SubmitTxRequest Tx) json of
63-
Success{} -> property True
64-
Error e -> counterexample (toString $ toText e) $ property False
6559
prop "accepts json encoded transaction" $
6660
forAll (arbitrary @Tx) $ \tx ->
6761
let json = toJSON tx

0 commit comments

Comments
 (0)