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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user