mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-22 11:08:11 +00:00
don't listen on all interfaces in tests, unless on CI
This commit is contained in:
parent
7274874c78
commit
8c84127a99
@ -232,23 +232,28 @@ 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)
|
||||||
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/4326/udt", "", false)
|
|
||||||
|
|
||||||
test("/ip6/::1/tcp/4324", "", true)
|
if len(os.Getenv("CI")) > 0 {
|
||||||
test("/ip6/::1/udp/4325", "", false)
|
test("/ip4/0.0.0.0/tcp/4324", "", true)
|
||||||
test("/ip6/::1/udp/4326/udt", "", false)
|
test("/ip4/0.0.0.0/udp/4325", "", false)
|
||||||
test("/ip6/::/tcp/4324", "", true)
|
test("/ip4/0.0.0.0/udp/4326/udt", "", false)
|
||||||
test("/ip6/::/udp/4325", "", false)
|
|
||||||
test("/ip6/::/udp/4326/udt", "", false)
|
|
||||||
|
|
||||||
/* "An implementation should also support the concept of a "default"
|
test("/ip6/::1/tcp/4324", "", true)
|
||||||
* zone for each scope. And, when supported, the index value zero
|
test("/ip6/::1/udp/4325", "", false)
|
||||||
* at each scope SHOULD be reserved to mean "use the default zone"."
|
test("/ip6/::1/udp/4326/udt", "", false)
|
||||||
* -- rfc4007. So, this _should_ work everywhere(?). */
|
test("/ip6/::/tcp/4324", "", true)
|
||||||
test("/ip6zone/0/ip6/::1/tcp/4324", "/ip6/::1/tcp/4324", true)
|
test("/ip6/::/udp/4325", "", false)
|
||||||
test("/ip6zone/0/ip6/::1/udp/4324", "", false)
|
test("/ip6/::/udp/4326/udt", "", false)
|
||||||
|
|
||||||
|
/* "An implementation should also support the concept of a "default"
|
||||||
|
* zone for each scope. And, when supported, the index value zero
|
||||||
|
* at each scope SHOULD be reserved to mean "use the default zone"."
|
||||||
|
* -- rfc4007. So, this _should_ work everywhere(?). */
|
||||||
|
test("/ip6zone/0/ip6/::1/tcp/4324", "/ip6/::1/tcp/4324", true)
|
||||||
|
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