Print CPU and GOMAXPROCS when running integration tests

Hopefully make it easier to reproduce the test env locally.
pull/2375/head
Jason Wilder 2015-04-21 16:35:10 -06:00
parent 4cc106887c
commit 6590653528
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import (
"os"
"path/filepath"
"regexp"
"runtime"
"strconv"
"strings"
"testing"
@ -21,6 +22,10 @@ import (
main "github.com/influxdb/influxdb/cmd/influxd"
)
func init() {
fmt.Printf("System Info: CPU=%d GOMAXPROCS=%d\n", runtime.NumCPU(), runtime.GOMAXPROCS(0))
}
const (
// Use a prime batch size, so that internal batching code, which most likely
// uses nice round batches, has to deal with leftover.