From 680acf4e3dc175a6199f4cefdcb4afdd06440c93 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Wed, 14 Mar 2018 17:41:44 -0500 Subject: [PATCH] Fix error on linux --- gopsutil/systeminfo_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gopsutil/systeminfo_test.go b/gopsutil/systeminfo_test.go index 4131942a2..5d96a499c 100644 --- a/gopsutil/systeminfo_test.go +++ b/gopsutil/systeminfo_test.go @@ -2,7 +2,6 @@ package gopsutil_test import ( "log" - "runtime" "testing" "github.com/pilosa/pilosa" @@ -27,8 +26,8 @@ func TestSystemInfo(t *testing.T) { } platform, err := systemInfo.Platform() - if err != nil || platform != runtime.GOOS { - t.Fatalf("Platform must be %s. (platform: %v, error: %v)", platform, runtime.GOOS, err) + if err != nil { + t.Fatalf("Error getting platform. (platform: %v, error: %v)", platform, err) } family, err := systemInfo.Family()