Branch: refs/heads/master
  Commit: 7cf9ec81909f69c267f4cb130bc1bbe04ff488b0
  Author: Dave Collins <>
  Date:   2016-09-20 (Tue, 20 Sep 2016)

  Changed paths:
    M rpctest/rpc_harness.go
    M rpctest/rpc_harness_test.go
    M rpctest/utils.go

  Log Message:
  rpctest: Use ports based on the process id.

This modifies the ports that are selected for use for the p2p and rpc
ports to start with a port that is based on the process id instead of a
hard-coded value.  The chosen ports are incremented for each running
instance similar to the previous code except the p2p and rpc ports and
now split into ranges instead of being 2 apart.

This is being done because the previous code only worked for a single
process which means it prevented the ability to run tests in parallel.

The new approach will work with multiple processes, however it must be
stated that there is still a very small probability that the stars could
align resulting in the same ports being selected.

Finally, this also reverts the recent change to run tests serially since
this fixes the underlying cause for that change.

Reply via email to