Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 7cf9ec81909f69c267f4cb130bc1bbe04ff488b0
      
https://github.com/btcsuite/btcd/commit/7cf9ec81909f69c267f4cb130bc1bbe04ff488b0
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-09-20 (Tue, 20 Sep 2016)

  Changed paths:
    M goclean.sh
    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