host: Check for error object

pull/540/head
Michal Rostecki 7 years ago
parent 91ac1d66ac
commit 0225d9ddcc

@ -51,6 +51,9 @@ func TestBoot_time(t *testing.T) {
t.Logf("first boot time: %d", v)
v2, err := BootTime()
if err != nil {
t.Errorf("error %v", err)
}
if v != v2 {
t.Errorf("cached boot time is different")
}

Loading…
Cancel
Save