massive refactoring against unit test lib

This commit is contained in:
Darien Raymond committed 2015-12-02 14:27:18 +00:00
1 parent cee85bdf26
commit 0a2e4343bc
44 files changed
+327 -317

No files matched your search

+5 -4
View File
@@ -10,11 +10,12 @@ import (
_ "github.com/v2ray/v2ray-core/proxy/vmess/config/json"
"github.com/v2ray/v2ray-core/shell/point/config/json"
"github.com/v2ray/v2ray-core/testing/unit"
v2testing "github.com/v2ray/v2ray-core/testing"
"github.com/v2ray/v2ray-core/testing/assert"
)
func TestClientSampleConfig(t *testing.T) {
assert := unit.Assert(t)
v2testing.Current(t)
// TODO: fix for Windows
baseDir := "$GOPATH/src/github.com/v2ray/v2ray-core/release/config"
@@ -34,7 +35,7 @@ func TestClientSampleConfig(t *testing.T) {
}
func TestServerSampleConfig(t *testing.T) {
assert := unit.Assert(t)
v2testing.Current(t)
// TODO: fix for Windows
baseDir := "$GOPATH/src/github.com/v2ray/v2ray-core/release/config"
@@ -54,7 +55,7 @@ func TestServerSampleConfig(t *testing.T) {
}
func TestDetourConfig(t *testing.T) {
assert := unit.Assert(t)
v2testing.Current(t)
// TODO: fix for Windows
baseDir := "$GOPATH/src/github.com/v2ray/v2ray-core/release/config"