Skip to content

Commit 6941e10

Browse files
committed
rabbitmq_peer_discovery_consul: Set bind_addr to 127.0.0.1 in test config
[Why] The test configuration was querying a network interface IP address based on its name. However, the name, "eth0", is very specific to Linux. This broke the test on other systems. [How] We still have to set an explicit `bind_addr` because Consul refuses to start if the host has multiple private IPv4 addresses, as it is the case in CI. Therefore, we hard-code 127.0.0.1 as the IPv4 address to use because it has a great chance to exist about anywhere.
1 parent 9f3c8de commit 6941e10

File tree

1 file changed

+1
-1
lines changed
  • deps/rabbitmq_peer_discovery_consul/test/system_SUITE_data

1 file changed

+1
-1
lines changed

deps/rabbitmq_peer_discovery_consul/test/system_SUITE_data/consul.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ connect {
2323

2424
# Addresses and ports
2525
client_addr = "0.0.0.0"
26-
bind_addr = "{{ GetInterfaceIP \"eth0\" }}"
26+
bind_addr = "127.0.0.1"
2727

2828
addresses {
2929
grpc = "0.0.0.0"

0 commit comments

Comments
 (0)