Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/ocp-414-link
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil authored Aug 29, 2023
2 parents 20bc3c6 + 30f70bc commit 15203f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/servinge2e/kourier/service_to_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ import (
// services from within the cluster.
func TestServiceToServiceCalls(t *testing.T) {

caCtx := test.SetupClusterAdmin(t)
test.CleanupOnInterrupt(t, func() { test.CleanupAll(t, caCtx) })
defer test.CleanupAll(t, caCtx)

tests := []testCase{{
// Requests go via gateway -> activator -> pod.
name: "service-call-via-activator",
Expand Down Expand Up @@ -58,7 +54,11 @@ func TestServiceToServiceCalls(t *testing.T) {
for _, scenario := range tests {
scenario := scenario
t.Run(scenario.name, func(t *testing.T) {
testServiceToService(t, caCtx, test.Namespace, scenario)
// Create a new context to prevent calling ctx.T.Fatal on parent T.
ctx := test.SetupClusterAdmin(t)
test.CleanupOnInterrupt(t, func() { test.CleanupAll(t, ctx) })
defer test.CleanupAll(t, ctx)
testServiceToService(t, ctx, test.Namespace, scenario)
})
}
}
Expand Down

0 comments on commit 15203f0

Please sign in to comment.