1
0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-09-20 09:52:57 +00:00
promcertcheck/vendor/github.com/prometheus/procfs/stat_test.go

20 lines
308 B
Go
Raw Normal View History

2015-09-04 14:27:44 +00:00
package procfs
import "testing"
func TestStat(t *testing.T) {
fs, err := NewFS("fixtures")
if err != nil {
t.Fatal(err)
}
s, err := fs.NewStat()
if err != nil {
t.Fatal(err)
}
if want, got := int64(1418183276), s.BootTime; want != got {
t.Errorf("want boot time %d, got %d", want, got)
}
}