mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-08 07:53:08 +00:00
Merge pull request #136 from marten-seemann/dont-listen-on-all-interfaces
don't listen on all interfaces in tests, unless on CI
This commit is contained in:
commit
a051a05e20
@ -232,6 +232,8 @@ func TestListenAddrs(t *testing.T) {
|
|||||||
test("/ip4/127.0.0.1/tcp/4324", "", true)
|
test("/ip4/127.0.0.1/tcp/4324", "", true)
|
||||||
test("/ip4/127.0.0.1/udp/4325", "", false)
|
test("/ip4/127.0.0.1/udp/4325", "", false)
|
||||||
test("/ip4/127.0.0.1/udp/4326/udt", "", false)
|
test("/ip4/127.0.0.1/udp/4326/udt", "", false)
|
||||||
|
|
||||||
|
if len(os.Getenv("CI")) > 0 {
|
||||||
test("/ip4/0.0.0.0/tcp/4324", "", true)
|
test("/ip4/0.0.0.0/tcp/4324", "", true)
|
||||||
test("/ip4/0.0.0.0/udp/4325", "", false)
|
test("/ip4/0.0.0.0/udp/4325", "", false)
|
||||||
test("/ip4/0.0.0.0/udp/4326/udt", "", false)
|
test("/ip4/0.0.0.0/udp/4326/udt", "", false)
|
||||||
@ -249,6 +251,9 @@ func TestListenAddrs(t *testing.T) {
|
|||||||
* -- rfc4007. So, this _should_ work everywhere(?). */
|
* -- rfc4007. So, this _should_ work everywhere(?). */
|
||||||
test("/ip6zone/0/ip6/::1/tcp/4324", "/ip6/::1/tcp/4324", true)
|
test("/ip6zone/0/ip6/::1/tcp/4324", "/ip6/::1/tcp/4324", true)
|
||||||
test("/ip6zone/0/ip6/::1/udp/4324", "", false)
|
test("/ip6zone/0/ip6/::1/udp/4324", "", false)
|
||||||
|
} else {
|
||||||
|
t.Skip("all tests only run on CI")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestListenAndDial(t *testing.T) {
|
func TestListenAndDial(t *testing.T) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user