Skip to content

Commit

Permalink
skip large frame tests in travis due to memory issues with the race d…
Browse files Browse the repository at this point in the history
…etector
  • Loading branch information
Zariel committed May 21, 2018
1 parent ce84f5f commit e4f695e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frame_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package gocql

import (
"bytes"
"os"
"testing"
)

Expand Down Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit e4f695e

Please sign in to comment.