From e4f695eb4f6b29b518ce0c7b613bd8dfc6efe46f Mon Sep 17 00:00:00 2001 From: Chris Bannister Date: Mon, 21 May 2018 21:41:41 +0100 Subject: [PATCH] skip large frame tests in travis due to memory issues with the race detector --- frame_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frame_test.go b/frame_test.go index 742de39e9..b846e606b 100644 --- a/frame_test.go +++ b/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