diff options
author | Valery Piashchynski <[email protected]> | 2021-01-23 18:56:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-23 18:56:55 +0300 |
commit | 2b12bc942f9eeb0b75325cc69a296076535f391a (patch) | |
tree | dfb8eaea3b3f0fc77f150de27091f7c38496dfe4 /utils | |
parent | 6d5a7470eb279ca3d1c9e5a148a761adebe93ab0 (diff) |
Remove redundand utils test
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/network_test.go | 23 | ||||
-rwxr-xr-x | utils/network_windows_test.go | 17 |
2 files changed, 0 insertions, 40 deletions
diff --git a/utils/network_test.go b/utils/network_test.go deleted file mode 100755 index cfed98f9..00000000 --- a/utils/network_test.go +++ /dev/null @@ -1,23 +0,0 @@ -// +build linux darwin freebsd - -package utils - -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() -} diff --git a/utils/network_windows_test.go b/utils/network_windows_test.go deleted file mode 100755 index 59ec0485..00000000 --- a/utils/network_windows_test.go +++ /dev/null @@ -1,17 +0,0 @@ -// +build windows - -package utils - -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)") -} |