ソースを参照

Changed TestBatchLimit to test that the correct error is being returned.

Phillip Couto 11 年 前
コミット
5eb6e0515f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

@@ -266,7 +266,7 @@ func TestBatchLimit(t *testing.T) {
 	for i := 0; i < 65537; i++ {
 		batch.Query(`INSERT INTO batch_table2 (id) VALUES (?)`, i)
 	}
-	if err := session.ExecuteBatch(batch); err == nil {
+	if err := session.ExecuteBatch(batch); err != ErrTooManyStmts {
 		t.Fatal("gocql attempted to execute a batch larger than the support limit of statements.")
 	}