[Agent] [Status] network info accomplish
This commit is contained in:
@@ -31,6 +31,16 @@ func TestGetNetworkMetric(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetNetworkInfo(t *testing.T) {
|
||||
GetNetworkInfo()
|
||||
networkInfos, err := GetNetworkInfo()
|
||||
if err != nil {
|
||||
t.Errorf("GetNetworkInfo error of %s", err)
|
||||
}
|
||||
|
||||
for _, networkInfo := range networkInfos {
|
||||
fmt.Println()
|
||||
marshal, _ := json.MarshalIndent(networkInfo, "", " ")
|
||||
fmt.Println(string(marshal))
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user