From 7acded32b2e700f41d397a5a9e1651d5e1acf307 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Fri, 21 Aug 2015 18:47:44 +0200 Subject: [PATCH] Add a test for the legacy Connect function. --- client_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client_test.go b/client_test.go index 3fe448a..8448be0 100644 --- a/client_test.go +++ b/client_test.go @@ -203,6 +203,20 @@ func TestConnIPv6(t *testing.T) { c.Quit() } +// TestConnect tests the legacy Connect function +func TestConnect(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + + c, err := Connect("localhost:21") + if err != nil { + t.Fatal(err) + } + + c.Quit() +} + func TestTimeout(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode.")