Skip to content

Commit 71cc6a3

Browse files
committed
Use GetTimeout duration when fetching and patching the Gateway
1 parent f24573f commit 71cc6a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

conformance/tests/gateway-dynamic-listeners.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"net"
2424
"strconv"
2525
"testing"
26-
"time"
2726

2827
"github.com/stretchr/testify/require"
2928
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -158,7 +157,7 @@ var GatewayListenerHTTPRouteDynamicPorts = suite.ConformanceTest{
158157
require.NoErrorf(t, err, "error getting certificate: %v", err)
159158

160159
t.Run("should be able to add multiple HTTP listeners with dynamic ports that then becomes available for routing traffic", func(t *testing.T) {
161-
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
160+
ctx, cancel := context.WithTimeout(context.Background(), s.TimeoutConfig.GetTimeout)
162161
defer cancel()
163162

164163
original := &v1beta1.Gateway{}

0 commit comments

Comments
 (0)