removes unusd sub context

This commit is contained in:
Andrew Martinez
2020-01-17 14:25:20 -05:00
parent 17360e5832
commit c33f4c08e7
-13
View File
@@ -94,19 +94,6 @@ func GetTestContext() *TestContext {
return defaultTestContext
}
func (ctx *TestContext) NewSubContext(t *testing.T) *TestContext {
return &TestContext{
ApiHost: ctx.ApiHost,
AdminAuthenticator: ctx.AdminAuthenticator,
AdminSession: ctx.AdminSession,
fabricController: ctx.fabricController,
EdgeController: ctx.EdgeController,
req: require.New(t),
client: ctx.client,
enabledJsonLogging: ctx.enabledJsonLogging,
}
}
func (ctx *TestContext) Transport() *http.Transport {
return &http.Transport{
Proxy: http.ProxyFromEnvironment,