summaryrefslogtreecommitdiff
path: root/utils/network_windows_test.go
blob: 277dc970aa2bec9ca0d89f4bb6697848cd7c01ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build windows

package utils

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)")
}