@@ -61,48 +61,50 @@ import Text.Pretty.Simple
6161
6262
6363tests :: TestTree
64- tests = testGroup " TxLogic"
65- [ testGroup " State"
66- [ testGroup " Arbitrary"
67- [ testGroup " ArbSharedTxState"
68- [ testProperty " generator" prop_SharedTxState_generator
69- , testProperty " shrinker" $ withMaxSuccess 10
70- prop_SharedTxState_shrinker
71- , testProperty " nothunks" prop_SharedTxState_nothunks
64+ tests = testGroup " AppV2"
65+ [ testGroup " TxLogic"
66+ [ testGroup " State"
67+ [ testGroup " Arbitrary"
68+ [ testGroup " ArbSharedTxState"
69+ [ testProperty " generator" prop_SharedTxState_generator
70+ , testProperty " shrinker" $ withMaxSuccess 10
71+ prop_SharedTxState_shrinker
72+ , testProperty " nothunks" prop_SharedTxState_nothunks
73+ ]
74+ , testGroup " ArbReceivedTxIds"
75+ [ testProperty " generator" prop_receivedTxIds_generator
76+ ]
77+ , testGroup " ArbCollectTxs"
78+ [ testProperty " generator" prop_collectTxs_generator
79+ , testProperty " shrinker" $ withMaxSuccess 10
80+ prop_collectTxs_shrinker
81+ ]
7282 ]
73- , testGroup " ArbReceivedTxIds"
74- [ testProperty " generator" prop_receivedTxIds_generator
83+ , testProperty " acknowledgeTxIds" prop_acknowledgeTxIds
84+ , testProperty " receivedTxIdsImpl" prop_receivedTxIdsImpl
85+ , testProperty " collectTxsImpl" prop_collectTxsImpl
86+ , testProperty " splitAcknowledgedTxIds" prop_splitAcknowledgedTxIds
87+ , testGroup " NoThunks"
88+ [ testProperty " receivedTxIdsImpl" prop_receivedTxIdsImpl_nothunks
89+ , testProperty " collectTxsImpl" prop_collectTxsImpl_nothunks
7590 ]
76- , testGroup " ArbCollectTxs"
77- [ testProperty " generator" prop_collectTxs_generator
78- , testProperty " shrinker" $ withMaxSuccess 10
79- prop_collectTxs_shrinker
80- ]
81- ]
82- , testProperty " acknowledgeTxIds" prop_acknowledgeTxIds
83- , testProperty " receivedTxIdsImpl" prop_receivedTxIdsImpl
84- , testProperty " collectTxsImpl" prop_collectTxsImpl
85- , testProperty " splitAcknowledgedTxIds" prop_splitAcknowledgedTxIds
86- , testGroup " NoThunks"
87- [ testProperty " receivedTxIdsImpl" prop_receivedTxIdsImpl_nothunks
88- , testProperty " collectTxsImpl" prop_collectTxsImpl_nothunks
8991 ]
90- ]
91- , testGroup " Decisions"
92- [ testGroup " ArbDecisionContexts"
93- [ testProperty " generator" prop_ArbDecisionContexts_generator
94- , testProperty " shrinker" $ withMaxSuccess 33
95- prop_ArbDecisionContexts_shrinker
92+ , testGroup " Decisions"
93+ [ testGroup " ArbDecisionContexts"
94+ [ testProperty " generator" prop_ArbDecisionContexts_generator
95+ , testProperty " shrinker" $ withMaxSuccess 33
96+ prop_ArbDecisionContexts_shrinker
97+ ]
98+ , testProperty " shared state invariant" prop_makeDecisions_sharedstate
99+ , testProperty " inflight" prop_makeDecisions_inflight
100+ , testProperty " policy" prop_makeDecisions_policy
101+ , testProperty " acknowledged" prop_makeDecisions_acknowledged
102+ , testProperty " exhaustive" prop_makeDecisions_exhaustive
96103 ]
97- , testProperty " shared state invariant" prop_makeDecisions_sharedstate
98- , testProperty " inflight" prop_makeDecisions_inflight
99- , testProperty " policy" prop_makeDecisions_policy
100- , testProperty " acknowledged" prop_makeDecisions_acknowledged
101- , testProperty " exhaustive" prop_makeDecisions_exhaustive
102- ]
103- , testGroup " Registry"
104- [ testGroup " filterActivePeers"
105- [ testProperty " not limiting decisions" prop_filterActivePeers_not_limitting_decisions
104+ , testGroup " Registry"
105+ [ testGroup " filterActivePeers"
106+ [ testProperty " not limiting decisions" prop_filterActivePeers_not_limitting_decisions
107+ ]
106108 ]
107109 ]
108110 ]
0 commit comments