lnwallet/test: pass in test channel type

This commit is contained in:
Joost Jager committed 2020-03-17 14:19:33 +01:00
1 parent b03c3c2df3
commit 30fc03d84d
5 files changed
+208 -88

No files matched your search

+6 -2
View File
@@ -35,7 +35,9 @@ func TestChainArbitratorRepublishCloses(t *testing.T) {
const numChans = 10
var channels []*channeldb.OpenChannel
for i := 0; i < numChans; i++ {
lChannel, _, cleanup, err := lnwallet.CreateTestChannels(true)
lChannel, _, cleanup, err := lnwallet.CreateTestChannels(
channeldb.SingleFunderTweaklessBit,
)
if err != nil {
t.Fatal(err)
}
@@ -149,7 +151,9 @@ func TestResolveContract(t *testing.T) {
// With the DB created, we'll make a new channel, and mark it as
// pending open within the database.
newChannel, _, cleanup, err := lnwallet.CreateTestChannels(true)
newChannel, _, cleanup, err := lnwallet.CreateTestChannels(
channeldb.SingleFunderTweaklessBit,
)
if err != nil {
t.Fatalf("unable to make new test channel: %v", err)
}