Merge pull request #324 from molecul/patch-1
Add new test 'TestHostGuid'
This commit is contained in:
commit
abc5c87f27
|
@ -91,3 +91,15 @@ func TestUserStat_String(t *testing.T) {
|
|||
t.Errorf("UserStat string is invalid: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHostGuid(t *testing.T) {
|
||||
hi, err := host.Info()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if hi.HostID == "" {
|
||||
t.Error("Host id is empty")
|
||||
} else {
|
||||
t.Logf("Host id value: %v", hi.HostID)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue