From 4804c837d47153486bb3e42038aaf9f9dd6029dc Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Wed, 12 May 2021 13:37:01 -0700 Subject: [PATCH] Insignificant change in ldap_upstream_watcher_test.go --- .../upstreamwatcher/ldap_upstream_watcher_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/controller/supervisorconfig/upstreamwatcher/ldap_upstream_watcher_test.go b/internal/controller/supervisorconfig/upstreamwatcher/ldap_upstream_watcher_test.go index 89f817a9..9e90cdd1 100644 --- a/internal/controller/supervisorconfig/upstreamwatcher/ldap_upstream_watcher_test.go +++ b/internal/controller/supervisorconfig/upstreamwatcher/ldap_upstream_watcher_test.go @@ -137,11 +137,7 @@ func TestLDAPUpstreamWatcherControllerFilterLDAPIdentityProviders(t *testing.T) // Wrap the func into a struct so the test can do deep equal assertions on instances of upstreamldap.Provider. type comparableDialer struct { - f upstreamldap.LDAPDialerFunc -} - -func (d *comparableDialer) Dial(ctx context.Context, hostAndPort string) (upstreamldap.Conn, error) { - return d.f(ctx, hostAndPort) + upstreamldap.LDAPDialerFunc } func TestLDAPUpstreamWatcherControllerSync(t *testing.T) { @@ -689,7 +685,7 @@ func TestLDAPUpstreamWatcherControllerSync(t *testing.T) { tt.setupMocks(conn) } - dialer := &comparableDialer{f: upstreamldap.LDAPDialerFunc(func(ctx context.Context, _ string) (upstreamldap.Conn, error) { + dialer := &comparableDialer{upstreamldap.LDAPDialerFunc(func(ctx context.Context, _ string) (upstreamldap.Conn, error) { if tt.dialError != nil { return nil, tt.dialError }