From 1b39199adf7ed13efad3b30c58b4dc9b51622b0f Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 17 Aug 2018 16:32:40 +0200 Subject: [PATCH] fix test case on arm --- common/buf/reader_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/buf/reader_test.go b/common/buf/reader_test.go index c6674451..64da6376 100644 --- a/common/buf/reader_test.go +++ b/common/buf/reader_test.go @@ -3,6 +3,7 @@ package buf_test import ( "bytes" "io" + "runtime" "testing" . "v2ray.com/core/common/buf" @@ -11,6 +12,11 @@ import ( ) func TestAdaptiveReader(t *testing.T) { + if runtime.GOARCH != "amd64" { + t.Skip("Smart reader only works on highend devices.") + return + } + assert := With(t) reader := NewReader(bytes.NewReader(make([]byte, 1024*1024)))