From 33cb0a2fb761b45398c4e9bd8a9066421d40867c Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Fri, 25 Oct 2024 12:46:24 -0600 Subject: [PATCH] use test context --- fronted_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fronted_test.go b/fronted_test.go index ab88d3f..575c2f4 100644 --- a/fronted_test.go +++ b/fronted_test.go @@ -236,9 +236,11 @@ func TestHostAliasesBasic(t *testing.T) { certs := x509.NewCertPool() certs.AddCert(cloudSack.Certificate()) - Configure(certs, map[string]*Provider{"cloudsack": p}, "cloudsack", "") - rt, ok := NewFronted(30 * time.Second) + testContext := NewFrontingContext("TestHostAliasesBasic") + testContext.Configure(certs, map[string]*Provider{"cloudsack": p}, "cloudsack", "") + + rt, ok := testContext.NewFronted(30 * time.Second) if !assert.True(t, ok, "failed to obtain direct roundtripper") { return }