test: scale down examAutoOccurrence tests for performance

This commit is contained in:
Gregor Kleen 2021-03-16 17:22:53 +01:00
parent 600bbe5d7e
commit badadff1e9

View File

@ -150,7 +150,7 @@ spec = do
-- | generate users without any pre-assigned rooms
genUsersWithOccurrences :: Preselection -> Gen (Map UserId (User, Maybe ExamOccurrenceId), Map ExamOccurrenceId Natural)
genUsersWithOccurrences preselection = do
rawUsers <- scale (50 *) $ listOf $ Entity <$> arbitrary <*> arbitrary
rawUsers <- listOf $ Entity <$> arbitrary <*> arbitrary -- consider applying `scale (50 *)` to uncover additional issues
occurrences <- genOccurrences $ length rawUsers
-- user surnames anpassen, sodass interessante instanz
users <- fmap Map.fromList $ forM rawUsers $ \Entity {entityKey, entityVal} -> do