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

net: Check for error object

This commit is contained in:
Michal Rostecki 2018-06-21 17:00:15 +02:00
parent 0225d9ddcc
commit 9d003ad2e1

View File

@ -61,6 +61,9 @@ func TestNetConnectionStatString(t *testing.T) {
func TestNetIOCountersAll(t *testing.T) {
v, err := IOCounters(false)
if err != nil {
t.Errorf("Could not get NetIOCounters: %v", err)
}
per, err := IOCounters(true)
if err != nil {
t.Errorf("Could not get NetIOCounters: %v", err)