0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/dist/automate_test.go

14 lines
196 B
Go
Raw Normal View History

2016-06-21 01:11:55 -05:00
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)
}
}