Skip to content

Commit d7f8fa6

Browse files
committed
lntest: increase port timeout
1 parent 33b07be commit d7f8fa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lntest/port/port.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
"strconv"
99
"sync"
1010
"time"
11+
12+
"github.com/lightningnetwork/lnd/lntest/wait"
1113
)
1214

1315
const (
@@ -45,7 +47,7 @@ func NextAvailablePort() int {
4547
defer portFileMutex.Unlock()
4648

4749
lockFile := filepath.Join(os.TempDir(), uniquePortFile+".lock")
48-
timeout := time.After(time.Second)
50+
timeout := time.After(wait.DefaultTimeout)
4951

5052
var (
5153
lockFileHandle *os.File

0 commit comments

Comments
 (0)