Back off port inc in the hopes that this is causing issues with CI

This commit is contained in:
Eric 2025-01-28 12:37:03 +11:00
parent 32f8c7f6c3
commit 52b42c76d9
No known key found for this signature in database

View File

@ -294,14 +294,14 @@ proc buildCommand(
raiseTestManagerError "bad file name, testFile: " & test.config.testFile, parent raiseTestManagerError "bad file name, testFile: " & test.config.testFile, parent
withLock(test.manager.codexPortLock): withLock(test.manager.codexPortLock):
# Increase the port by 100 to allow each test to run 100 codex nodes # Increase the port by 20 to allow each test to run 20 codex nodes
# (clients, SPs, validators) giving a good chance the port will be free. We # (clients, SPs, validators) giving a good chance the port will be free. We
# cannot rely on `nextFreePort` in multinodes entirely as there could be a # cannot rely on `nextFreePort` in multinodes entirely as there could be a
# concurrency issue where the port is determined free in mulitiple tests and # concurrency issue where the port is determined free in mulitiple tests and
# then there is a clash during the run. # then there is a clash during the run.
let apiPort = await nextFreePort(test.manager.lastCodexApiPort + 100) let apiPort = await nextFreePort(test.manager.lastCodexApiPort + 20)
test.manager.lastCodexApiPort = apiPort test.manager.lastCodexApiPort = apiPort
let discPort = await nextFreePort(test.manager.lastCodexDiscPort + 100) let discPort = await nextFreePort(test.manager.lastCodexDiscPort + 20)
test.manager.lastCodexDiscPort = discPort test.manager.lastCodexDiscPort = discPort
withLock(test.manager.hardhatPortLock): withLock(test.manager.hardhatPortLock):