Skip to content

Commit

Permalink
chore: add 20m timeout to test suite ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneutt committed Sep 6, 2023
1 parent 61f54e0 commit 3827335
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"os"
"testing"
"time"

"github.com/kong/kubernetes-testing-framework/pkg/clusters"
"github.com/kong/kubernetes-testing-framework/pkg/clusters/addons/loadimage"
Expand Down Expand Up @@ -39,8 +40,9 @@ var (
)

const (
gwCRDsKustomize = "https://github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v0.7.1"
testKustomize = "../../config/tests/integration"
gwCRDsKustomize = "https://github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v0.7.1"
testKustomize = "../../config/tests/integration"
testSuiteTimeout = time.Minute * 20
)

func TestMain(m *testing.M) {
Expand All @@ -54,7 +56,7 @@ func TestMain(m *testing.M) {
exitOnErr(fmt.Errorf("BLIXT_CONTROLPLANE_IMAGE, BLIXT_DATAPLANE_IMAGE, and BLIXT_UDP_SERVER_IMAGE must be provided"))
}

ctx, cancel = context.WithCancel(context.Background())
ctx, cancel = context.WithTimeout(context.Background(), testSuiteTimeout)
defer cancel()

if existingCluster != "" {
Expand Down

0 comments on commit 3827335

Please sign in to comment.