summaryrefslogtreecommitdiff
path: root/listeners_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'listeners_test.go')
-rw-r--r--listeners_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/listeners_test.go b/listeners_test.go
index 2828a3b..b75e2dc 100644
--- a/listeners_test.go
+++ b/listeners_test.go
@@ -139,6 +139,14 @@ func TestJoinNetworkAddress(t *testing.T) {
expect: "unix//foo/bar",
},
{
+ network: "unix", host: "/foo/bar", port: "0",
+ expect: "unix//foo/bar",
+ },
+ {
+ network: "unix", host: "/foo/bar", port: "1234",
+ expect: "unix//foo/bar",
+ },
+ {
network: "", host: "::1", port: "1234",
expect: "[::1]:1234",
},