From 5960260cdbf0258c53b30c2c81289fe4c7d1dd0f Mon Sep 17 00:00:00 2001 From: Sandhya Dasu Date: Mon, 17 Jul 2023 09:09:43 -0400 Subject: [PATCH] Allow testsuite to compare strings of length > 4000 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. --- tests/suite_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/suite_test.go b/tests/suite_test.go index 1419ee92bd9..663eb869045 100644 --- a/tests/suite_test.go +++ b/tests/suite_test.go @@ -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" @@ -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())