summaryrefslogtreecommitdiff
path: root/util/network_windows_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-26 18:12:40 +0300
committerValery Piashchynski <[email protected]>2020-02-26 18:12:40 +0300
commit53859e193b89082c83d7a190baa97892075d259c (patch)
tree7791c8bf6f4d17f349f267c44ffb130edc9cf2b3 /util/network_windows_test.go
parent038517ca5e4e8d53614ca406fd2edda306a58875 (diff)
Test update
Ci remove windows
Diffstat (limited to 'util/network_windows_test.go')
-rw-r--r--util/network_windows_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/network_windows_test.go b/util/network_windows_test.go
new file mode 100644
index 00000000..a5a8064e
--- /dev/null
+++ b/util/network_windows_test.go
@@ -0,0 +1,16 @@
+// +build windows
+
+package util
+
+import (
+ "github.com/stretchr/testify/assert"
+ "testing"
+)
+
+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)")
+} \ No newline at end of file