From 6898eef046bb65a2fb5463f42c15c48ac26f5141 Mon Sep 17 00:00:00 2001 From: WAKAYAMA shirou Date: Thu, 1 May 2014 18:46:40 +0900 Subject: [PATCH] fix if disk_io_counters failed. --- process_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process_test.go b/process_test.go index 501b932e..a59f20ac 100644 --- a/process_test.go +++ b/process_test.go @@ -93,10 +93,11 @@ func Test_Process_IOCounters(t *testing.T) { v, err := p.IOCounters() if err != nil { t.Errorf("geting ppid error %v", err) + return } - fmt.Println(v) if v.ReadCount == 0 { t.Errorf("return value is 0 %v", v) } + fmt.Println(v) }