test: remove FullSync call from breacharbiter_test.go

In this commit, we remove an extra openChannel.FullSync() call from
breacharbiter_test.go. Before this collective diff, calling
SyncPending() then FullSync() didn't result in an error. However, a
prior commit now makes this an error to ensure we don't attempt to
override any existing channels. This is the only area in the codebase
that we made this mistake which in this case, was benign.
This commit is contained in:
Olaoluwa Osuntokun 2019-01-03 17:54:49 -08:00
parent 9e5723e1bc
commit 821de3e107
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -1580,9 +1580,6 @@ func createInitChannels(revocationWindow int) (*lnwallet.LightningChannel, *lnwa
if err := channelAlice.State().SyncPending(addr, 101); err != nil { if err := channelAlice.State().SyncPending(addr, 101); err != nil {
return nil, nil, nil, err return nil, nil, nil, err
} }
if err := channelAlice.State().FullSync(); err != nil {
return nil, nil, nil, err
}
addr = &net.TCPAddr{ addr = &net.TCPAddr{
IP: net.ParseIP("127.0.0.1"), IP: net.ParseIP("127.0.0.1"),
@ -1591,9 +1588,6 @@ func createInitChannels(revocationWindow int) (*lnwallet.LightningChannel, *lnwa
if err := channelBob.State().SyncPending(addr, 101); err != nil { if err := channelBob.State().SyncPending(addr, 101); err != nil {
return nil, nil, nil, err return nil, nil, nil, err
} }
if err := channelBob.State().FullSync(); err != nil {
return nil, nil, nil, err
}
cleanUpFunc := func() { cleanUpFunc := func() {
dbBob.Close() dbBob.Close()