Skip to content

Commit

Permalink
exclude pool_test from race detector testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rlmcpherson committed Mar 11, 2015
1 parent f423f73 commit cd945ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pool_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
// +build !race

package s3gof3r

import (
"bytes"
"io/ioutil"
"log"
"strings"
"testing"
"time"
)

// The test causes data races due to reading the log buffer and setting bp.time
func TestBP(t *testing.T) {

// send log output to buffer
lf := *bytes.NewBuffer(nil)
SetLogger(&lf, "", log.LstdFlags, true)
defer SetLogger(ioutil.Discard, "", log.LstdFlags, true)

bp := bufferPool(mb)
bp.timeout = 1 * time.Millisecond
Expand Down

0 comments on commit cd945ca

Please sign in to comment.