internal/memory: skip TestRead on darwin
Test fails because macOS doesn't have a /proc/meminfo.
Run-TryBot: Damien Neil
TryBot-Result: kokoro
package memory
import (
+ "runtime"
"testing"
)
func TestRead(t *testing.T) {
+ if runtime.GOOS == "darwin" {
+ t.Skip("darwin has no /proc/meminfo")
+ }
_, err := ReadSystemStats()
if err != nil {
t.Fatal(err)
