You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/load_test.go

19 lines
247 B
Go

11 years ago
// +build linux
package gopsutil
11 years ago
import (
"testing"
)
func TestLoad(t *testing.T) {
v, err := LoadAvg()
11 years ago
if err != nil {
t.Errorf("error %v", err)
}
if v.Load1 == 0 || v.Load5 == 0 || v.Load15 == 0 {
t.Errorf("error load: %v", v)
}
}