aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/auth_ldap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/auth_ldap_test.go')
-rw-r--r--integrations/auth_ldap_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/integrations/auth_ldap_test.go b/integrations/auth_ldap_test.go
index 5cb2bad57d..80286c09e6 100644
--- a/integrations/auth_ldap_test.go
+++ b/integrations/auth_ldap_test.go
@@ -5,6 +5,7 @@
package integrations
import (
+ "context"
"net/http"
"os"
"strings"
@@ -147,7 +148,7 @@ func TestLDAPUserSync(t *testing.T) {
}
defer prepareTestEnv(t)()
addAuthSourceLDAP(t, "")
- models.SyncExternalUsers()
+ models.SyncExternalUsers(context.Background())
session := loginUser(t, "user1")
// Check if users exists
@@ -206,7 +207,8 @@ func TestLDAPUserSSHKeySync(t *testing.T) {
}
defer prepareTestEnv(t)()
addAuthSourceLDAP(t, "sshPublicKey")
- models.SyncExternalUsers()
+
+ models.SyncExternalUsers(context.Background())
// Check if users has SSH keys synced
for _, u := range gitLDAPUsers {