Browse Source

Skip functional testing in short mode.

Julien Laffaye 10 years ago
parent
commit
110a39bff4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      client_test.go

+ 8 - 0
client_test.go

@@ -13,6 +13,10 @@ const (
 )
 )
 
 
 func TestConn(t *testing.T) {
 func TestConn(t *testing.T) {
+	if testing.Short() {
+		t.Skip("skipping test in short mode.")
+	}
+
 	c, err := DialTimeout("localhost:21", 5*time.Second)
 	c, err := DialTimeout("localhost:21", 5*time.Second)
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
@@ -114,6 +118,10 @@ func TestConn(t *testing.T) {
 
 
 // ftp.mozilla.org uses multiline 220 response
 // ftp.mozilla.org uses multiline 220 response
 func TestMultiline(t *testing.T) {
 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)
 	c, err := DialTimeout("ftp.mozilla.org:21", 5*time.Second)
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)