rpctest: Fix typo
Use os.Getpid() to get the process ID, not os.Getppid(), which returns the parent process ID. This resulted in multiple calls to generateListeningAddresses() getting the same listening ports.
This commit is contained in:
parent
5ec83d23f3
commit
99165eb558
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ var (
|
|||
// It should be noted however that there is still some small probability
|
||||
// that there will be port collisions either due to other processes
|
||||
// running or simply due to the stars aligning on the process IDs.
|
||||
processID = os.Getppid()
|
||||
processID = os.Getpid()
|
||||
|
||||
// testInstances is a private package-level slice used to keep track of
|
||||
// all active test harnesses. This global can be used to perform
|
||||
|
|
Loading…
Reference in a new issue