fix test case on arm

pull/1269/head
Darien Raymond 2018-08-17 16:32:40 +02:00
parent b769e0cc5f
commit 1b39199adf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package buf_test
import ( import (
"bytes" "bytes"
"io" "io"
"runtime"
"testing" "testing"
. "v2ray.com/core/common/buf" . "v2ray.com/core/common/buf"
@ -11,6 +12,11 @@ import (
) )
func TestAdaptiveReader(t *testing.T) { func TestAdaptiveReader(t *testing.T) {
if runtime.GOARCH != "amd64" {
t.Skip("Smart reader only works on highend devices.")
return
}
assert := With(t) assert := With(t)
reader := NewReader(bytes.NewReader(make([]byte, 1024*1024))) reader := NewReader(bytes.NewReader(make([]byte, 1024*1024)))