diff --git a/acceptor/tcp_acceptor_test.go b/acceptor/tcp_acceptor_test.go index 65dff631..4c994083 100644 --- a/acceptor/tcp_acceptor_test.go +++ b/acceptor/tcp_acceptor_test.go @@ -22,6 +22,7 @@ package acceptor import ( "net" + "runtime" "testing" "time" @@ -49,6 +50,9 @@ func TestNewTCPAcceptorGetConnChanAndGetAddr(t *testing.T) { for _, table := range tcpAcceptorTables { t.Run(table.name, func(t *testing.T) { if table.panicErr != "" { + if table.name == "test_4" && runtime.GOOS == "windows" { + table.panicErr = "invalid certificates: open wqd: The system cannot find the file specified." + } assert.PanicsWithError(t, table.panicErr, func() { NewTCPAcceptor(table.addr, table.certs...) }) diff --git a/helpers/helpers.go b/helpers/helpers.go index 0420c979..2a012b91 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -14,10 +14,10 @@ import ( "testing" "time" - clientv3 "go.etcd.io/etcd/client/v3" - "go.etcd.io/etcd/tests/v3/integration" "github.com/nats-io/nats-server/v2/server" gnatsd "github.com/nats-io/nats-server/v2/test" + clientv3 "go.etcd.io/etcd/client/v3" + "go.etcd.io/etcd/tests/v3/integration" ) // GetFreePort returns a free port