|
|
@@ -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
|