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:
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…
x
Reference in New Issue
Block a user