1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-29 15:26:29 -04:00

fix test break

This commit is contained in:
Darien Raymond 2016-08-29 12:23:17 +02:00
parent 7f2ba0d106
commit 7a31e7a0c2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -6,7 +6,7 @@ import (
"testing"
"v2ray.com/core/proxy/registry"
"v2ray.com/core/proxy/socks"
. "v2ray.com/core/proxy/socks"
"v2ray.com/core/testing/assert"
)
@ -17,5 +17,5 @@ func TestDefaultIPAddress(t *testing.T) {
"auth": "noauth"
}`))
assert.Error(err).IsNil()
assert.Address(socksConfig.(*socks.Config).Address).EqualsString("127.0.0.1")
assert.Address(socksConfig.(*ServerConfig).Address.AsAddress()).EqualsString("127.0.0.1")
}