소스 검색

fix broken test again

Darien Raymond 7 년 전
부모
커밋
39c84c8dcd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      transport/internet/tcp/sockopt_linux_test.go

+ 2 - 1
transport/internet/tcp/sockopt_linux_test.go

@@ -8,6 +8,7 @@ import (
 	"testing"
 
 	"v2ray.com/core/testing/servers/tcp"
+	"v2ray.com/core/transport/internet"
 	. "v2ray.com/core/transport/internet/tcp"
 	. "v2ray.com/ext/assert"
 )
@@ -20,7 +21,7 @@ func TestGetOriginalDestination(t *testing.T) {
 	assert(err, IsNil)
 	defer tcpServer.Close()
 
-	conn, err := Dial(context.Background(), dest, nil)
+	conn, err := Dial(context.Background(), dest, internet.ToMemoryStreamConfig(nil))
 	assert(err, IsNil)
 	defer conn.Close()