increase port gap by 1000 to avoid clashes in windows

This commit is contained in:
Eric 2025-02-06 17:50:33 +11:00
parent c51103165b
commit 9cd9f5e29f
No known key found for this signature in database

View File

@ -325,9 +325,9 @@ proc buildCommand(
# cannot rely on `nextFreePort` in multinodes entirely as there could be a
# concurrency issue where the port is determined free in mulitiple tests and
# then there is a clash during the run.
let apiPort = await nextFreePort(test.manager.lastCodexApiPort + 100)
let apiPort = await nextFreePort(test.manager.lastCodexApiPort + 1000)
test.manager.lastCodexApiPort = apiPort
let discPort = await nextFreePort(test.manager.lastCodexDiscPort + 100)
let discPort = await nextFreePort(test.manager.lastCodexDiscPort + 1000)
test.manager.lastCodexDiscPort = discPort
withLock(test.manager.hardhatPortLock):