fix(test): resepct uniqueness for ldap primary keys
This commit is contained in:
parent
a5ee70c370
commit
d1badf16fc
@ -48,8 +48,10 @@ makeUsers (fromIntegral -> n) = do
|
||||
users' <- liftIO . replicateM n $ generate arbitrary
|
||||
users <- forM users' $ \u -> do
|
||||
i <- atomically $ readTVar userNumber <* modifyTVar userNumber succ
|
||||
let u' = u { userIdent = CI.mk $ "user." <> tshow i
|
||||
, userEmail = CI.mk $ "user." <> tshow i <> "@example.com"
|
||||
let baseid = CI.mk $ "user." <> tshow i
|
||||
u' = u { userIdent = baseid
|
||||
, userEmail = baseid <> "@example.com"
|
||||
, userLdapPrimaryKey = baseid <> ".ldap"
|
||||
}
|
||||
return u'
|
||||
uids <- insertMany users
|
||||
|
||||
Loading…
Reference in New Issue
Block a user