From 674ade498cf8b0d069e856657b2c3f66eb7ead78 Mon Sep 17 00:00:00 2001 From: Hrushi20 Date: Sat, 28 Oct 2023 04:37:45 +0530 Subject: [PATCH] extend lifetime of execution thread unit test Signed-off-by: Hrushi20 --- .../jenkins/plugins/git/maintenance/TaskSchedulerTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/jenkins/plugins/git/maintenance/TaskSchedulerTest.java b/src/test/java/jenkins/plugins/git/maintenance/TaskSchedulerTest.java index 92b6024475..1b9937fe3c 100644 --- a/src/test/java/jenkins/plugins/git/maintenance/TaskSchedulerTest.java +++ b/src/test/java/jenkins/plugins/git/maintenance/TaskSchedulerTest.java @@ -117,6 +117,12 @@ public void testCreateExecutionThread(){ config.setCronSyntax(TaskType.PREFETCH,"* * * * *"); config.setIsTaskConfigured(TaskType.PREFETCH,true); + config.setCronSyntax(TaskType.LOOSE_OBJECTS,"* * * * *"); + config.setIsTaskConfigured(TaskType.LOOSE_OBJECTS,true); + config.setCronSyntax(TaskType.COMMIT_GRAPH,"* * * * *"); + config.setIsTaskConfigured(TaskType.COMMIT_GRAPH,true); + config.setCronSyntax(TaskType.GC,"* * * * *"); + config.setIsTaskConfigured(TaskType.GC,true); List maintenanceTasks = config.getMaintenanceTasks(); taskScheduler.addTasksToQueue(maintenanceTasks);