diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-10-08 09:06:01 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-08 08:06:01 +1000 |
| commit | 381a4a95bb4ad1020ef173609fa67bdb70d80b2e (patch) | |
| tree | 59d13d91dc29d9f0af71734df4f55565cf070d5d /internal/authentication/ldap_user_provider_test.go | |
| parent | b1255c2b17314b88c11da8843930c18ce91abf39 (diff) | |
refactor: clock newups (#6101)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/authentication/ldap_user_provider_test.go')
| -rw-r--r-- | internal/authentication/ldap_user_provider_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/internal/authentication/ldap_user_provider_test.go b/internal/authentication/ldap_user_provider_test.go index 39ba0b84e..96c06b31f 100644 --- a/internal/authentication/ldap_user_provider_test.go +++ b/internal/authentication/ldap_user_provider_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - ldap "github.com/go-ldap/ldap/v3" + "github.com/go-ldap/ldap/v3" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -5259,11 +5259,7 @@ func TestShouldParseDynamicConfiguration(t *testing.T) { nil, mockFactory) - clk := &clock.Fixed{} - - provider.clock = clk - - clk.Set(time.Unix(1670250519, 0)) + provider.clock = clock.NewFixed(time.Unix(1670250519, 0)) assert.True(t, provider.groupsFilterReplacementInput) assert.True(t, provider.groupsFilterReplacementUsername) |
