|  | @@ -7,9 +7,9 @@ import (
 | 
											
												
													
														|  |  	"strings"
 |  |  	"strings"
 | 
											
												
													
														|  |  	"testing"
 |  |  	"testing"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -	. "v2ray.com/ext/assert"
 |  | 
 | 
											
												
													
														|  |  	"v2ray.com/core/testing/servers/tcp"
 |  |  	"v2ray.com/core/testing/servers/tcp"
 | 
											
												
													
														|  |  	. "v2ray.com/core/transport/internet/tcp"
 |  |  	. "v2ray.com/core/transport/internet/tcp"
 | 
											
												
													
														|  | 
 |  | +	. "v2ray.com/ext/assert"
 | 
											
												
													
														|  |  )
 |  |  )
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func TestGetOriginalDestination(t *testing.T) {
 |  |  func TestGetOriginalDestination(t *testing.T) {
 | 
											
										
											
												
													
														|  | @@ -25,5 +25,5 @@ func TestGetOriginalDestination(t *testing.T) {
 | 
											
												
													
														|  |  	defer conn.Close()
 |  |  	defer conn.Close()
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	originalDest, err := GetOriginalDestination(conn)
 |  |  	originalDest, err := GetOriginalDestination(conn)
 | 
											
												
													
														|  | -	assert(dest == originalDest || strings.Contains(err.Error(), "failed to call getsockopt"))
 |  | 
 | 
											
												
													
														|  | 
 |  | +	assert(dest == originalDest || strings.Contains(err.Error(), "failed to call getsockopt"), IsTrue)
 | 
											
												
													
														|  |  }
 |  |  }
 |