From d7f8fa6ab6d09f810a982fdaee5704f1cff1cb3f Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 4 Dec 2024 10:46:25 +0800 Subject: [PATCH] lntest: increase port timeout --- lntest/port/port.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lntest/port/port.go b/lntest/port/port.go index 28db1918d..28cd92d69 100644 --- a/lntest/port/port.go +++ b/lntest/port/port.go @@ -8,6 +8,8 @@ import ( "strconv" "sync" "time" + + "github.com/lightningnetwork/lnd/lntest/wait" ) const ( @@ -45,7 +47,7 @@ func NextAvailablePort() int { defer portFileMutex.Unlock() lockFile := filepath.Join(os.TempDir(), uniquePortFile+".lock") - timeout := time.After(time.Second) + timeout := time.After(wait.DefaultTimeout) var ( lockFileHandle *os.File