Skip to content

Commit

Permalink
use test context
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 25, 2024
1 parent eda8ab2 commit 33cb0a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fronted_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 33cb0a2

Please sign in to comment.