Disable gopsutil tests that don't work on darwin

This commit is contained in:
Evan Phoenix
2015-04-06 09:46:47 -07:00
parent d1cc82653a
commit 71461e7a49
2 changed files with 40 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ import (
"fmt"
"runtime"
"testing"
"github.com/shirou/gopsutil/common"
)
func TestDisk_usage(t *testing.T) {
@@ -36,6 +38,10 @@ func TestDisk_partitions(t *testing.T) {
func TestDisk_io_counters(t *testing.T) {
ret, err := DiskIOCounters()
if err != nil {
if err == common.NotImplementedError {
t.SkipNow()
}
t.Errorf("error %v", err)
}
if len(ret) == 0 {