Skip to content

Commit

Permalink
Fix firewall warnings for integration tests on Mac
Browse files Browse the repository at this point in the history
When running integration tests locally on MacOS, each test causes a number of popup boxes containing the text
‘Do you want the application “peer” to accept incoming network connections?”.
Although this can be ignored, each popup takes the (cursor) focus away from the current window, and so is annoying when trying to do anything else.
This is caused because each test is launching one or more peer instances which get compiled on demand and appears to the firewall as a new executable.
The fix for this is to ensure that all listen addresses are explicitly set as localhost.  In this case, the chaincodeListenAddress host can be set to 127.0.0.1 rather than 0.0.0.0

Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
  • Loading branch information
andrew-coleman authored and pull[bot] committed Jun 4, 2023
1 parent 3a9f3a4 commit 48d1148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/nwo/template/core_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ peer:
address: 127.0.0.1:{{ .PeerPort Peer "Listen" }}
addressAutoDetect: true
listenAddress: 127.0.0.1:{{ .PeerPort Peer "Listen" }}
chaincodeListenAddress: 0.0.0.0:{{ .PeerPort Peer "Chaincode" }}
chaincodeListenAddress: 127.0.0.1:{{ .PeerPort Peer "Chaincode" }}
keepalive:
minInterval: 60s
client:
Expand Down

0 comments on commit 48d1148

Please sign in to comment.