Merge pull request #4548 from cfromknecht/remove-dev-wt-tests

watchtower: remove dev tag from unit test files
This commit is contained in:
Olaoluwa Osuntokun 2020-08-20 18:43:18 -07:00 committed by GitHub
commit 05fbd5a9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 10 deletions

@ -1,5 +1,3 @@
// +build dev
package lookout_test
import (

@ -1,5 +1,3 @@
// +build dev
package lookout_test
import (

@ -1,5 +1,3 @@
// +build dev
package lookout
import (

@ -1,5 +1,3 @@
// +build dev
package wtclient_test
import (
@ -24,6 +22,7 @@ import (
"github.com/lightningnetwork/lnd/watchtower/wtmock"
"github.com/lightningnetwork/lnd/watchtower/wtpolicy"
"github.com/lightningnetwork/lnd/watchtower/wtserver"
"github.com/stretchr/testify/require"
)
const (
@ -1457,7 +1456,8 @@ var clientTests = []clientTest{
// Re-add the tower. We prevent the tower from acking
// session creation to ensure the inactive sessions are
// not used.
h.server.Stop()
err := h.server.Stop()
require.Nil(h.t, err)
h.serverCfg.NoAckCreateSession = true
h.startServer()
h.addTower(h.serverAddr)
@ -1466,7 +1466,8 @@ var clientTests = []clientTest{
// Finally, allow the tower to ack session creation,
// allowing the state updates to be sent through the new
// session.
h.server.Stop()
err = h.server.Stop()
require.Nil(h.t, err)
h.serverCfg.NoAckCreateSession = false
h.startServer()
h.waitServerUpdates(hints[numUpdates/2:], 5*time.Second)