This is an automated email from the ASF dual-hosted git repository.

vishesh pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.22 by this push:
     new 7f7d0b02e14 Remove unnecessary stubbings in 
ManagementServerMaintenanceManagerImplTest (#11914) (#12623)
7f7d0b02e14 is described below

commit 7f7d0b02e141da90719c5799bdae92383251fb69
Author: Abhishek Kumar <[email protected]>
AuthorDate: Thu Mar 12 12:29:31 2026 +0530

    Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest 
(#11914) (#12623)
---
 .../maintenance/ManagementServerMaintenanceManagerImplTest.java         | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
 
b/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
index 280d1eaf9eb..a208893f6d1 100644
--- 
a/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
+++ 
b/plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java
@@ -321,7 +321,6 @@ public class ManagementServerMaintenanceManagerImplTest {
             spy.prepareForMaintenance("static", false);
         });
 
-        
Mockito.when(msHost.getState()).thenReturn(ManagementServerHost.State.Maintenance);
         Mockito.doNothing().when(jobManagerMock).enableAsyncJobs();
         spy.cancelMaintenance();
         Mockito.verify(jobManagerMock).enableAsyncJobs();
@@ -339,7 +338,6 @@ public class ManagementServerMaintenanceManagerImplTest {
             spy.prepareForMaintenance("static", false);
         });
 
-        
Mockito.when(msHost.getState()).thenReturn(ManagementServerHost.State.PreparingForMaintenance);
         Mockito.doNothing().when(jobManagerMock).enableAsyncJobs();
         spy.cancelMaintenance();
         Mockito.verify(jobManagerMock).enableAsyncJobs();

Reply via email to