open-consul/agent/consul
Frank Schroeder 74859ff3c0 test: replace porter tool with freeport lib
This patch removes the porter tool which hands out free ports from a
given range with a library which does the same thing. The challenge for
acquiring free ports in concurrent go test runs is that go packages are
tested concurrently and run in separate processes. There has to be some
inter-process synchronization in preventing processes allocating the
same ports.

freeport allocates blocks of ports from a range expected to be not in
heavy use and implements a system-wide mutex by binding to the first
port of that block for the lifetime of the application. Ports are then
provided sequentially from that block and are tested on localhost before
being returned as available.
2017-10-21 22:01:09 +02:00
..
prepared_query
state
acl.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
acl_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
acl_endpoint_test.go
acl_replication.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
acl_replication_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
acl_test.go Bumps default Raft protocol to version 3. (#3477) 2017-09-25 15:27:04 -07:00
autopilot.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
autopilot_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
catalog_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
catalog_endpoint_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
client.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
client_serf.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
client_test.go Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
config.go Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
coordinate_endpoint.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
coordinate_endpoint_test.go
filter.go
filter_test.go Introduce Code Policy validation via sentinel, with a noop implementation 2017-09-25 13:44:55 -05:00
flood.go
fsm.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
fsm_test.go Cleans up some drift between the OSS and Enterprise trees. 2017-10-11 15:53:07 -07:00
health_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
health_endpoint_test.go
helper_test.go Cleans up some drift between the OSS and Enterprise trees. 2017-10-11 15:53:07 -07:00
internal_endpoint.go Cleans up formatting. 2017-09-07 12:26:58 -07:00
internal_endpoint_test.go
issue_test.go
kvs_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
kvs_endpoint_test.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
leader.go Fixes handling of stop channel and failed barrier attempts. (#3546) 2017-10-06 07:54:49 -07:00
leader_test.go Issue 3452 (#3500) 2017-09-26 20:49:41 -07:00
merge.go
merge_test.go
operator_autopilot_endpoint.go
operator_autopilot_endpoint_test.go
operator_endpoint.go
operator_raft_endpoint.go Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449 2017-09-26 09:35:39 -05:00
operator_raft_endpoint_test.go Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449 2017-09-26 09:35:39 -05:00
prepared_query_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
prepared_query_endpoint_test.go
raft_rpc.go
rpc.go Replace time.Now().Sub(x) with time.Since(x) 2017-10-17 20:38:24 +02:00
rpc_test.go
rtt.go
rtt_test.go
segment_stub.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
serf_test.go
server.go Makes RPC handling more robust when rolling servers. (#3561) 2017-10-10 15:19:50 -07:00
server_lookup.go
server_lookup_test.go
server_serf.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
server_test.go test: replace porter tool with freeport lib 2017-10-21 22:01:09 +02:00
session_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
session_endpoint_test.go
session_timers.go
session_timers_test.go
session_ttl.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
session_ttl_test.go
snapshot_endpoint.go
snapshot_endpoint_test.go Cleans up some edge cases in TestSnapshot_Forward_Leader. 2017-09-26 14:07:28 -07:00
stats_fetcher.go
stats_fetcher_test.go Gets rid of flaky clause in stats fetcher unit test. 2017-09-26 20:53:06 -07:00
status_endpoint.go
status_endpoint_test.go
txn_endpoint.go Update metric names and add a legacy config flag 2017-10-04 16:43:27 -07:00
txn_endpoint_test.go
util.go
util_test.go