Skip to content

Commit

Permalink
Adjust PacketStream to new test framework
Browse files Browse the repository at this point in the history
  • Loading branch information
t-wallet committed Jul 31, 2024
1 parent 1b837cb commit 7c96795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Protocols/PacketStream/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ instance
) =>
Test (PacketStream dom dataWidth metaType)
where
expectToLengths Proxy = pure . P.length
expectN Proxy options nExpected sampled =
expectN (Proxy @(Df.Df dom _)) options nExpected
expectN Proxy options sampled =
expectN (Proxy @(Df.Df dom _)) options
$ Df.maybeToData
<$> sampled

Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/Protocols/PacketStream/PacketFifo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ prop_overFlowDrop_packetFifo_drop :: Property
prop_overFlowDrop_packetFifo_drop =
idWithModelSingleDomain
@C.System
(ExpectOptions 50 (Just 1_000) 30 False)
defExpectOptions
-- make sure the timeout is long as the packetFifo can be quiet for a while while dropping
(liftA3 (\a b c -> a ++ b ++ c) genSmall genBig genSmall)
(C.exposeClockResetEnable model)
Expand Down

0 comments on commit 7c96795

Please sign in to comment.