syncUserGroups created its own db.NewSession() internally while being called from AuthenticateUserInLDAP which already has an active session with writes. In SQLite shared-cache mode this causes a lock conflict. Pass the caller's session through instead, and add s.Commit() before db.AssertExists calls in LDAP tests. |
||
|---|---|---|
| .. | ||
| ldap.go | ||
| ldap_test.go | ||
| main_test.go | ||