Browse Source

fix test break

pull/692/head^2
Darien Raymond 7 years ago
parent
commit
e4fd29db70
  1. 4
      transport/internet/tcp/sockopt_linux_test.go

4
transport/internet/tcp/sockopt_linux_test.go

@ -7,9 +7,9 @@ import (
"strings"
"testing"
. "v2ray.com/ext/assert"
"v2ray.com/core/testing/servers/tcp"
. "v2ray.com/core/transport/internet/tcp"
. "v2ray.com/ext/assert"
)
func TestGetOriginalDestination(t *testing.T) {
@ -25,5 +25,5 @@ func TestGetOriginalDestination(t *testing.T) {
defer conn.Close()
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)
}

Loading…
Cancel
Save