Skip to content

Commit 507e89e

Browse files
committed
Fixed delete of tests in dryRun
1 parent bcc008b commit 507e89e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Services/Administration/OJS.Services.Administration.Business/Contests/ContestsImportBusinessService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,11 @@ private async Task UpdateContest(
290290
existingProblem.Resources.Clear();
291291
existingProblem.SubmissionTypesInProblems.Clear();
292292

293-
// Delete test runs for the problem, as they are no longer valid after importing new tests
294-
await testRunsData.DeleteByProblem(existingProblem.Id);
293+
if (!dryRun)
294+
{
295+
// Delete test runs for the problem, as they are no longer valid after importing new tests
296+
await testRunsData.DeleteByProblem(existingProblem.Id);
297+
}
295298
}
296299

297300
// Update problem properties

0 commit comments

Comments
 (0)