contractcourt: init BudgetConfig in unit tests

This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:33 +08:00
1 parent 0a611aae00
commit aa44197f88
7 files changed
+10 -2

No files matched your search

+4 -2
View File
@@ -86,7 +86,8 @@ func TestChainArbitratorRepublishCloses(t *testing.T) {
published[tx.TxHash()]++
return nil
},
Clock: clock.NewDefaultClock(),
Clock: clock.NewDefaultClock(),
Budget: *DefaultBudgetConfig(),
}
chainArb := NewChainArbitrator(
chainArbCfg, db,
@@ -169,7 +170,8 @@ func TestResolveContract(t *testing.T) {
PublishTx: func(tx *wire.MsgTx, _ string) error {
return nil
},
Clock: clock.NewDefaultClock(),
Clock: clock.NewDefaultClock(),
Budget: *DefaultBudgetConfig(),
}
chainArb := NewChainArbitrator(
chainArbCfg, db,