Explorar o código

Added skip to TestBatchStats

Phillip Couto %!s(int64=11) %!d(string=hai) anos
pai
achega
32cb8f5266
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      cassandra_test.go

+ 3 - 0
cassandra_test.go

@@ -1189,6 +1189,9 @@ func TestQueryStats(t *testing.T) {
 
 //TestBatchStats confirms that the stats are returning valid data. Accuracy may be questionable.
 func TestBatchStats(t *testing.T) {
+	if *flagProto == 1 {
+		t.Skip("atomic batches not supported. Please use Cassandra >= 2.0")
+	}
 	session := createSession(t)
 	defer session.Close()