From 110a39bff40f391fa3bbacbb8e973371966943c2 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Tue, 18 Aug 2015 18:39:31 +0200 Subject: [PATCH] Skip functional testing in short mode. --- client_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client_test.go b/client_test.go index ba2f77d..47e3dd4 100644 --- a/client_test.go +++ b/client_test.go @@ -13,6 +13,10 @@ const ( ) func TestConn(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + c, err := DialTimeout("localhost:21", 5*time.Second) if err != nil { t.Fatal(err) @@ -114,6 +118,10 @@ func TestConn(t *testing.T) { // ftp.mozilla.org uses multiline 220 response func TestMultiline(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + c, err := DialTimeout("ftp.mozilla.org:21", 5*time.Second) if err != nil { t.Fatal(err)