Skip to content

Commit

Permalink
fix(tests): reduce number of relationships in fixtures (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 authored Jul 16, 2024
1 parent 9259492 commit 09243f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/database/mariadb/test/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,16 @@ func (s *DatabaseSeeder) SeedDbWithNFakeData(n int) *SeedCollection {
issueVariants := s.SeedIssueVariants(n, repos, issues)
users := s.SeedUsers(n)
owners := s.SeedOwners(n, services, users)
supportGroupServices := s.SeedSupportGroupServices(n, services, supportGroups)
supportGroupUsers := s.SeedSupportGroupUsers(n, users, supportGroups)
supportGroupServices := s.SeedSupportGroupServices(n/2, services, supportGroups)
supportGroupUsers := s.SeedSupportGroupUsers(n/2, users, supportGroups)
activities := s.SeedActivities(n)
activityHasServices := s.SeedActivityHasServices(n, activities, services)
activityHasIssues := s.SeedActivityHasIssues(n, activities, issues)
activityHasServices := s.SeedActivityHasServices(n/2, activities, services)
activityHasIssues := s.SeedActivityHasIssues(n/2, activities, issues)
evidences := s.SeedEvidences(n, activities, users)
componentVersionIssues := s.SeedComponentVersionIssues(n, componentVersions, issues)
componentVersionIssues := s.SeedComponentVersionIssues(n/2, componentVersions, issues)
issueMatches := s.SeedIssueMatches(n, issues, componentInstances, users)
issueMatchEvidences := s.SeedIssueMatchEvidence(n, issueMatches, evidences)
issueRepositoryServices := s.SeedIssueRepositoryServices(n, services, repos)
issueMatchEvidences := s.SeedIssueMatchEvidence(n/2, issueMatches, evidences)
issueRepositoryServices := s.SeedIssueRepositoryServices(n/2, services, repos)
issueMatchChanges := s.SeedIssueMatchChanges(n, issueMatches, activities)

return &SeedCollection{
Expand Down

0 comments on commit 09243f1

Please sign in to comment.