You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2026/01/28 17:16:45 UTC
(cloudstack) branch main updated: Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914)
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 106f478e2c9 Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914)
106f478e2c9 is described below
commit 106f478e2c988a6cddbf302e1e83e5c344b53464
Author: Harikrishna <ha...@gmail.com>
AuthorDate: Wed Jan 28 22:46:38 2026 +0530
Remove unnecessary stubbings in ManagementServerMaintenanceManagerImplTest (#11914)
---
.../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();