fix test break

This commit is contained in:
Darien Raymond committed 2016-11-02 16:41:02 +01:00
1 parent cdb0debcb0
commit 9d2407f4e4
2 files changed
+6 -7

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ import (
"testing"
"v2ray.com/core/common/protocol"
"v2ray.com/core/proxy/vmess"
"v2ray.com/core/proxy/vmess/outbound"
"v2ray.com/core/testing/assert"
. "v2ray.com/core/tools/conf"
@@ -40,6 +39,6 @@ func TestConfigTargetParsing(t *testing.T) {
config := iConfig.(*outbound.Config)
specPB := config.Receiver[0]
spec := protocol.NewServerSpecFromPB(vmess.NewAccount, *specPB)
spec := protocol.NewServerSpecFromPB(*specPB)
assert.Destination(spec.Destination()).EqualsString("tcp:127.0.0.1:80")
}