summaryrefslogtreecommitdiff
path: root/internal/authentication/file_user_provider_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/authentication/file_user_provider_test.go')
-rw-r--r--internal/authentication/file_user_provider_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/authentication/file_user_provider_test.go b/internal/authentication/file_user_provider_test.go
index 1da33a389..0925d893f 100644
--- a/internal/authentication/file_user_provider_test.go
+++ b/internal/authentication/file_user_provider_test.go
@@ -86,7 +86,6 @@ func TestShouldNotPanicOnNilDB(t *testing.T) {
provider := &FileUserProvider{
config: &schema.AuthenticationBackendFile{Path: f, Password: schema.DefaultPasswordConfig},
- mutex: &sync.Mutex{},
timeoutReload: time.Now().Add(-1 * time.Second),
}
@@ -102,7 +101,7 @@ func TestShouldHandleBadConfig(t *testing.T) {
provider := &FileUserProvider{
config: &schema.AuthenticationBackendFile{Path: f, Password: schema.DefaultPasswordConfig, ExtraAttributes: map[string]schema.AuthenticationBackendExtraAttribute{"example": {ValueType: "integer"}}},
- mutex: &sync.Mutex{},
+ mutex: sync.Mutex{},
timeoutReload: time.Now().Add(-1 * time.Second),
}