Skip to content

Commit

Permalink
remove test interactions, by only deleting created team
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonEntholzer committed Nov 17, 2024
1 parent c8d2c7d commit 462158c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ public void getAndCreateParticipationVcsAccessTokenForTeamExercise() throws Exce
submissionRepository.delete(submission);
participationVCSAccessTokenRepository.deleteAll();
participationRepository.deleteById(submission.getParticipation().getId());
teamUtilService.deleteAll();
teamUtilService.deleteTeam(team);
}

// Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public Team createTeam(Set<User> students, User owner, Exercise exercise, String
/**
* Deletes all teams
*/
public void deleteAll() {
teamRepo.deleteAll();
public void deleteTeam(Team team) {
teamRepo.delete(team);
}
}

0 comments on commit 462158c

Please sign in to comment.