node_exporter/collector/loadavg_test.go
Tobias Schmidt 974f6fc762 Fix tests
2014-11-24 18:34:02 -05:00

15 lines
242 B
Go

package collector
import "testing"
func TestLoad(t *testing.T) {
load, err := parseLoad("0.21 0.37 0.39 1/719 19737")
if err != nil {
t.Fatal(err)
}
if want := 0.21; want != load {
t.Fatalf("want load %f, got %f", want, load)
}
}