caddy/dist/automate_test.go
2016-06-21 00:11:55 -06:00

13 lines
196 B
Go

package main
import (
"runtime"
"testing"
)
func TestNumProcs(t *testing.T) {
n := numProcs()
if n != runtime.NumCPU()-1 {
t.Errorf("Expected numProcs to return NumCPU-1, got %d", n)
}
}