1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

host: Check for error object

This commit is contained in:
Michal Rostecki 2018-06-21 16:58:40 +02:00
parent 91ac1d66ac
commit 0225d9ddcc

View File

@ -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")
}