From 4fd2e882674e9e8b591ec182155b4ba90223af21 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 16 Oct 2020 12:43:02 +0300 Subject: Fix old deps in tests --- util/network_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/network_test.go') diff --git a/util/network_test.go b/util/network_test.go index 09157ec0..1dc16e94 100644 --- a/util/network_test.go +++ b/util/network_test.go @@ -3,8 +3,9 @@ package util import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestCreateListener(t *testing.T) { -- cgit v1.2.3 From 68bf13772c6ddfc5159c2a286e1a38e911614e72 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 26 Oct 2020 09:43:28 +0300 Subject: mode update --- util/network_test.go | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 util/network_test.go (limited to 'util/network_test.go') diff --git a/util/network_test.go b/util/network_test.go old mode 100644 new mode 100755 -- cgit v1.2.3 From 8df4896deabdab9a50a5ad3c6da6e1c7f05922af Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sun, 27 Dec 2020 00:59:10 +0300 Subject: Util -> Utils --- util/network_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 util/network_test.go (limited to 'util/network_test.go') diff --git a/util/network_test.go b/util/network_test.go deleted file mode 100755 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() -} -- cgit v1.2.3