lntest: increase port timeout

This commit is contained in:
yyforyongyu committed 2024-12-20 19:38:14 +08:00
1 parent 33b07be8c3
commit d7f8fa6ab6
1 file changed
+3 -1
+3 -1
View File
@@ -8,6 +8,8 @@ import (
"strconv" "strconv"
"sync" "sync"
"time" "time"
"github.com/lightningnetwork/lnd/lntest/wait"
) )
const ( const (
@@ -45,7 +47,7 @@ func NextAvailablePort() int {
defer portFileMutex.Unlock() defer portFileMutex.Unlock()
lockFile := filepath.Join(os.TempDir(), uniquePortFile+".lock") lockFile := filepath.Join(os.TempDir(), uniquePortFile+".lock")
timeout := time.After(time.Second) timeout := time.After(wait.DefaultTimeout)
var ( var (
lockFileHandle *os.File lockFileHandle *os.File