Skip to content

Commit

Permalink
Allow testsuite to compare strings of length > 4000
Browse files Browse the repository at this point in the history
Update the MaxLength within the format package of gomega. This allows
for the test suite to compare strings of size greater than 4000 which
for required for the new tests added for the custom DNS feature.
  • Loading branch information
sadasu committed Jul 18, 2023
1 parent 5402364 commit 5960260
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
format "github.com/onsi/gomega/format"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/discovery"
Expand All @@ -34,6 +35,8 @@ func TestAPIs(t *testing.T) {

g := NewGomegaWithT(t)

format.MaxLength = 0

var err error
suites, err = LoadTestSuiteSpecs(filepath.Join(".."))
g.Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit 5960260

Please sign in to comment.