summaryrefslogtreecommitdiff
path: root/util/network_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-25 16:18:26 +0300
committerGitHub <[email protected]>2021-01-25 16:18:26 +0300
commitf1875f5715bf7635e17697ae3513ba3d21e4e524 (patch)
treef9c0c3876ef542217a8bd7ff17f90bffc018132f /util/network_test.go
parenta063ad05b1cab8ec71eecc32f836efa4d431c6b8 (diff)
parent99bf203511b8af4be37186017e2e0c73a030d4f3 (diff)
Merge pull request #429 from spiral/2.0
Release 2.0-dev
Diffstat (limited to 'util/network_test.go')
-rw-r--r--util/network_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/util/network_test.go b/util/network_test.go
deleted file mode 100644
index 1dc16e94..00000000
--- a/util/network_test.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// +build linux darwin freebsd
-
-package util
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestCreateListener(t *testing.T) {
- _, err := CreateListener("unexpected dsn")
- assert.Error(t, err, "Invalid DSN (tcp://:6001, unix://file.sock)")
-
- _, err = CreateListener("aaa://192.168.0.1")
- assert.Error(t, err, "Invalid Protocol (tcp://:6001, unix://file.sock)")
-}
-
-func TestUnixCreateListener(t *testing.T) {
- l, err := CreateListener("unix://file.sock")
- assert.NoError(t, err)
- l.Close()
-}