mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-11 07:13:38 +00:00
fix test case on arm
This commit is contained in:
parent
b769e0cc5f
commit
1b39199adf
@ -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)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user