From 969b9d838d1437c10abfb6ff2fd2160600b49d46 Mon Sep 17 00:00:00 2001 From: art2ip <126820369+art2ip@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:13:59 -0700 Subject: [PATCH] Fixed test failure. --- pkg/client/config.go | 4 ---- test/functest/setup_test.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/client/config.go b/pkg/client/config.go index e93cca3..9653e0d 100644 --- a/pkg/client/config.go +++ b/pkg/client/config.go @@ -23,7 +23,6 @@ import ( "github.com/paypal/junodb/pkg/io" "github.com/paypal/junodb/pkg/util" - "github.com/paypal/junodb/internal/cli" cal "github.com/paypal/junodb/pkg/logging/cal/config" ) @@ -57,8 +56,5 @@ func (c *Config) validate(useGetTLS bool) error { if c.DefaultTimeToLive < 0 { return fmt.Errorf("Config.DefaultTimeToLive is negative.") } - if c.Server.SSLEnabled && !useGetTLS && !cli.TLSInitialized() { - return fmt.Errorf("getTLSConfig is nil.") - } return nil } diff --git a/test/functest/setup_test.go b/test/functest/setup_test.go index 08f1d48..2b969df 100644 --- a/test/functest/setup_test.go +++ b/test/functest/setup_test.go @@ -110,7 +110,7 @@ func setup() { var err error if proxyClient, err = client.New(cfg); err != nil { - glog.Exitf("proxyClient create in set up is null, fail") + glog.Exitf("%s proxyClient create in set up is null, fail", err) } cfgShare = cfg cfgShare.Namespace = "NS2"