17 lines
231 B
Go
17 lines
231 B
Go
package status
|
|
|
|
import (
|
|
"testing"
|
|
"wdd.io/agent-common/utils"
|
|
)
|
|
|
|
func TestGetHostInfo(t *testing.T) {
|
|
|
|
info, err := GetHostInfo()
|
|
if err != nil {
|
|
t.Errorf("get host info error is %v", err)
|
|
}
|
|
|
|
utils.BeautifulPrint(info)
|
|
}
|