|  | @@ -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)))
 |