Skip to content

Commit bdaa5c8

Browse files
committed
fix tests
1 parent 66e737d commit bdaa5c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/com/cloud/vm/UserVmManagerImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,7 +3934,7 @@ public void testAllocateVMFromBackupWithVmSettingsRestoration() throws Insuffici
39343934
CreateVMFromBackupCmd cmd = new CreateVMFromBackupCmd();
39353935
cmd._accountService = accountService;
39363936
cmd._entityMgr = entityManager;
3937-
when(accountService.finalyzeAccountId(nullable(String.class), nullable(Long.class), nullable(Long.class), eq(true))).thenReturn(accountId);
3937+
when(accountService.finalizeAccountId(nullable(String.class), nullable(Long.class), nullable(Long.class), eq(true))).thenReturn(accountId);
39383938
when(accountService.getActiveAccountById(accountId)).thenReturn(account);
39393939

39403940
ReflectionTestUtils.setField(cmd, "serviceOfferingId", serviceOfferingId);
@@ -4000,7 +4000,7 @@ public void testAllocateVMFromBackupWithOverrideDiskOfferingComputeOnly() throws
40004000
CreateVMFromBackupCmd cmd = new CreateVMFromBackupCmd();
40014001
cmd._accountService = accountService;
40024002
cmd._entityMgr = entityManager;
4003-
when(accountService.finalyzeAccountId(nullable(String.class), nullable(Long.class), nullable(Long.class), eq(true))).thenReturn(accountId);
4003+
when(accountService.finalizeAccountId(nullable(String.class), nullable(Long.class), nullable(Long.class), eq(true))).thenReturn(accountId);
40044004
when(accountService.getActiveAccountById(accountId)).thenReturn(account);
40054005

40064006
ReflectionTestUtils.setField(cmd, "serviceOfferingId", serviceOfferingId);

0 commit comments

Comments
 (0)