Skip to content

Commit 1626a37

Browse files
committed
Fix UT failure in BackupManagerTest
1 parent 934b7ab commit 1626a37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/test/java/org/apache/cloudstack/backup/BackupManagerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ public void testCreateScheduledBackup() throws ResourceAllocationException {
576576

577577
CreateBackupCmd cmd = Mockito.mock(CreateBackupCmd.class);
578578
when(cmd.getVmId()).thenReturn(vmId);
579+
when(cmd.getScheduleId()).thenReturn(scheduleId);
579580

580581
try (MockedStatic<ActionEventUtils> ignored = Mockito.mockStatic(ActionEventUtils.class)) {
581582
Mockito.when(ActionEventUtils.onActionEvent(Mockito.anyLong(), Mockito.anyLong(),

0 commit comments

Comments
 (0)