[Groonga-commit] groonga/grnci at 9d65494 [master] Disable annoying tests.

Back to archive index

Susumu Yata null+****@clear*****
Thu Jul 6 16:34:01 JST 2017


Susumu Yata	2017-07-06 16:34:01 +0900 (Thu, 06 Jul 2017)

  New Revision: 9d654943e08513d715e23d2e0c838ddb2c90b363
  https://github.com/groonga/grnci/commit/9d654943e08513d715e23d2e0c838ddb2c90b363

  Message:
    Disable annoying tests.

  Modified files:
    v2/libgrn/client_test.go
    v2/libgrn/conn_test.go

  Modified: v2/libgrn/client_test.go (+46 -50)
===================================================================
--- v2/libgrn/client_test.go    2017-07-06 16:30:54 +0900 (bbc190f)
+++ v2/libgrn/client_test.go    2017-07-06 16:34:01 +0900 (b1197a8)
@@ -1,10 +1,6 @@
 package libgrn
 
 import (
-	"io"
-	"io/ioutil"
-	"log"
-	"strings"
 	"testing"
 
 	"github.com/groonga/grnci/v2"
@@ -59,54 +55,54 @@ import (
 // 	}
 // }
 
-func TestClientDB(t *testing.T) {
-	type Pair struct {
-		Command string
-		Body    string
-	}
-	pairs := []Pair{
-		// Pair{"no_such_command", ""},
-		Pair{"status", ""},
-		Pair{`table_create Tbl TABLE_PAT_KEY ShortText`, ""},
-		Pair{`column_create Tbl Col COLUMN_SCALAR Int32`, ""},
-		Pair{`load --table Tbl --values '[["_key"],["test"]]'`, ""},
-		Pair{`load --table Tbl --values '[["_key"],["test" invalid_format]]'`, ""},
-		Pair{"load --table Tbl", `[["_key"],["test"]]`},
-		Pair{"load --table Tbl", `[["_key"],["test" invalid_format]]`},
-		Pair{"select --table Tbl", ""},
-		Pair{"dump", ""},
-	}
+// func TestClientDB(t *testing.T) {
+// 	type Pair struct {
+// 		Command string
+// 		Body    string
+// 	}
+// 	pairs := []Pair{
+// 		// Pair{"no_such_command", ""},
+// 		Pair{"status", ""},
+// 		Pair{`table_create Tbl TABLE_PAT_KEY ShortText`, ""},
+// 		Pair{`column_create Tbl Col COLUMN_SCALAR Int32`, ""},
+// 		Pair{`load --table Tbl --values '[["_key"],["test"]]'`, ""},
+// 		Pair{`load --table Tbl --values '[["_key"],["test" invalid_format]]'`, ""},
+// 		Pair{"load --table Tbl", `[["_key"],["test"]]`},
+// 		Pair{"load --table Tbl", `[["_key"],["test" invalid_format]]`},
+// 		Pair{"select --table Tbl", ""},
+// 		Pair{"dump", ""},
+// 	}
 
-	client, err := OpenClient("/tmp/db/db")
-	if err != nil {
-		t.Skipf("OpenClient failed: %v", err)
-	}
-	defer client.Close()
+// 	client, err := OpenClient("/tmp/db/db")
+// 	if err != nil {
+// 		t.Skipf("OpenClient failed: %v", err)
+// 	}
+// 	defer client.Close()
 
-	for _, pair := range pairs {
-		var body io.Reader
-		if pair.Body != "" {
-			body = strings.NewReader(pair.Body)
-		}
-		log.Printf("command = %s", pair.Command)
-		resp, err := client.Exec(pair.Command, body)
-		if err != nil {
-			t.Fatalf("client.Exec failed: %v", err)
-		}
-		result, err := ioutil.ReadAll(resp)
-		if err != nil {
-			t.Fatalf("ioutil.ReadAll failed: %v", err)
-		}
-		log.Printf("start = %v, elapsed = %v", resp.Start(), resp.Elapsed())
-		log.Printf("result = %s", result)
-		if err := resp.Err(); err != nil {
-			log.Printf("err = %v", err)
-		}
-		if err := resp.Close(); err != nil {
-			t.Fatalf("resp.Close failed: %v", err)
-		}
-	}
-}
+// 	for _, pair := range pairs {
+// 		var body io.Reader
+// 		if pair.Body != "" {
+// 			body = strings.NewReader(pair.Body)
+// 		}
+// 		log.Printf("command = %s", pair.Command)
+// 		resp, err := client.Exec(pair.Command, body)
+// 		if err != nil {
+// 			t.Fatalf("client.Exec failed: %v", err)
+// 		}
+// 		result, err := ioutil.ReadAll(resp)
+// 		if err != nil {
+// 			t.Fatalf("ioutil.ReadAll failed: %v", err)
+// 		}
+// 		log.Printf("start = %v, elapsed = %v", resp.Start(), resp.Elapsed())
+// 		log.Printf("result = %s", result)
+// 		if err := resp.Err(); err != nil {
+// 			log.Printf("err = %v", err)
+// 		}
+// 		if err := resp.Close(); err != nil {
+// 			t.Fatalf("resp.Close failed: %v", err)
+// 		}
+// 	}
+// }
 
 func TestClientHandler(t *testing.T) {
 	var i interface{} = &Client{}

  Modified: v2/libgrn/conn_test.go (+46 -50)
===================================================================
--- v2/libgrn/conn_test.go    2017-07-06 16:30:54 +0900 (a3c8d69)
+++ v2/libgrn/conn_test.go    2017-07-06 16:34:01 +0900 (95904c8)
@@ -1,10 +1,6 @@
 package libgrn
 
 import (
-	"io"
-	"io/ioutil"
-	"log"
-	"strings"
 	"testing"
 
 	"github.com/groonga/grnci/v2"
@@ -59,54 +55,54 @@ import (
 // 	}
 // }
 
-func TestConnDB(t *testing.T) {
-	type Pair struct {
-		Command string
-		Body    string
-	}
-	pairs := []Pair{
-		// Pair{"no_such_command", ""},
-		Pair{"status", ""},
-		Pair{`table_create Tbl TABLE_PAT_KEY ShortText`, ""},
-		Pair{`column_create Tbl Col COLUMN_SCALAR Int32`, ""},
-		Pair{`load --table Tbl --values '[["_key"],["test"]]'`, ""},
-		Pair{`load --table Tbl --values '[["_key"],["test" invalid_format]]'`, ""},
-		Pair{"load --table Tbl", `[["_key"],["test"]]`},
-		Pair{"load --table Tbl", `[["_key"],["test" invalid_format]]`},
-		Pair{"select --table Tbl", ""},
-		Pair{"dump", ""},
-	}
+// func TestConnDB(t *testing.T) {
+// 	type Pair struct {
+// 		Command string
+// 		Body    string
+// 	}
+// 	pairs := []Pair{
+// 		// Pair{"no_such_command", ""},
+// 		Pair{"status", ""},
+// 		Pair{`table_create Tbl TABLE_PAT_KEY ShortText`, ""},
+// 		Pair{`column_create Tbl Col COLUMN_SCALAR Int32`, ""},
+// 		Pair{`load --table Tbl --values '[["_key"],["test"]]'`, ""},
+// 		Pair{`load --table Tbl --values '[["_key"],["test" invalid_format]]'`, ""},
+// 		Pair{"load --table Tbl", `[["_key"],["test"]]`},
+// 		Pair{"load --table Tbl", `[["_key"],["test" invalid_format]]`},
+// 		Pair{"select --table Tbl", ""},
+// 		Pair{"dump", ""},
+// 	}
 
-	conn, err := Open("/tmp/db/db")
-	if err != nil {
-		t.Skipf("Open failed: %v", err)
-	}
-	defer conn.Close()
+// 	conn, err := Open("/tmp/db/db")
+// 	if err != nil {
+// 		t.Skipf("Open failed: %v", err)
+// 	}
+// 	defer conn.Close()
 
-	for _, pair := range pairs {
-		var body io.Reader
-		if pair.Body != "" {
-			body = strings.NewReader(pair.Body)
-		}
-		log.Printf("command = %s", pair.Command)
-		resp, err := conn.Exec(pair.Command, body)
-		if err != nil {
-			t.Fatalf("conn.Exec failed: %v", err)
-		}
-		result, err := ioutil.ReadAll(resp)
-		if err != nil {
-			t.Fatalf("ioutil.ReadAll failed: %v", err)
-		}
-		log.Printf("start = %v, elapsed = %v", resp.Start(), resp.Elapsed())
-		log.Printf("result = %s", result)
-		if err := resp.Err(); err != nil {
-			log.Printf("err = %v", err)
-		}
-		if err := resp.Close(); err != nil {
-			t.Fatalf("resp.Close failed: %v", err)
-		}
-	}
-}
+// 	for _, pair := range pairs {
+// 		var body io.Reader
+// 		if pair.Body != "" {
+// 			body = strings.NewReader(pair.Body)
+// 		}
+// 		log.Printf("command = %s", pair.Command)
+// 		resp, err := conn.Exec(pair.Command, body)
+// 		if err != nil {
+// 			t.Fatalf("conn.Exec failed: %v", err)
+// 		}
+// 		result, err := ioutil.ReadAll(resp)
+// 		if err != nil {
+// 			t.Fatalf("ioutil.ReadAll failed: %v", err)
+// 		}
+// 		log.Printf("start = %v, elapsed = %v", resp.Start(), resp.Elapsed())
+// 		log.Printf("result = %s", result)
+// 		if err := resp.Err(); err != nil {
+// 			log.Printf("err = %v", err)
+// 		}
+// 		if err := resp.Close(); err != nil {
+// 			t.Fatalf("resp.Close failed: %v", err)
+// 		}
+// 	}
+// }
 
 func TestConnHandler(t *testing.T) {
 	var i interface{} = &Conn{}
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index