1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 05:55:20 -05:00

refactor test

This commit is contained in:
Darien Raymond
2017-05-18 00:39:30 +02:00
parent 661c0fc237
commit 087a91c46c
10 changed files with 118 additions and 102 deletions

View File

@@ -46,7 +46,8 @@ func TestHttpConformance(t *testing.T) {
},
}
assert.Error(InitializeServerConfig(serverConfig)).IsNil()
servers, err := InitializeServerConfigs(serverConfig)
assert.Error(err).IsNil()
{
transport := &http.Transport{
@@ -69,5 +70,5 @@ func TestHttpConformance(t *testing.T) {
}
CloseAllServers()
CloseAllServers(servers)
}