Selaa lähdekoodia

skip large frame tests in travis due to memory issues with the race detector

Chris Bannister 7 vuotta sitten
vanhempi
commit
e4f695eb4f
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      frame_test.go

+ 9 - 0
frame_test.go

@@ -2,6 +2,7 @@ package gocql
 
 import (
 	"bytes"
+	"os"
 	"testing"
 )
 
@@ -59,6 +60,10 @@ func TestFuzzBugs(t *testing.T) {
 }
 
 func TestFrameWriteTooLong(t *testing.T) {
+	if os.Getenv("TRAVIS") == "true" {
+		t.Skip("skipping test in travis due to memory pressure with the race detecor")
+	}
+
 	w := &bytes.Buffer{}
 	framer := newFramer(nil, w, nil, 2)
 
@@ -71,6 +76,10 @@ func TestFrameWriteTooLong(t *testing.T) {
 }
 
 func TestFrameReadTooLong(t *testing.T) {
+	if os.Getenv("TRAVIS") == "true" {
+		t.Skip("skipping test in travis due to memory pressure with the race detecor")
+	}
+
 	r := &bytes.Buffer{}
 	r.Write(make([]byte, maxFrameSize+1))
 	// write a new header right after this frame to verify that we can read it