If you are running tests in Go which does requests to some application in a Mac Os X which has not the OS Developer certificate (such as using binary built locally by you) then, you will see the following dialog request permission to allow the execution for each call made.

You can suppressing it by running the following command. Note that, you will pass as arg the path with the name of the binary used by your tests.
# allow run the tests without the Mac OS Firewall popup shows for each execution
codesign --deep --force --verbose --sign - ./<path>/app-name
The above solution will work for Travis as well. Another option would be generate the OS Developer certificate (*.p12) and assign it to your application. See the blog which has a good explanation over it.