You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapperTest.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -373,7 +373,7 @@ public void testExecuteWithRsyncFailure() throws Exception {
373
373
.thenAnswer(invocation -> {
374
374
Stringcommand = invocation.getArgument(0);
375
375
if (command.contains("mount")) {
376
-
return0; // File exists
376
+
return0; // mount success
377
377
} elseif (command.contains("rsync")) {
378
378
return1; // Rsync failure
379
379
}
@@ -429,7 +429,7 @@ public void testExecuteWithAttachVolumeFailure() throws Exception {
429
429
.thenAnswer(invocation -> {
430
430
Stringcommand = invocation.getArgument(0);
431
431
if (command.contains("mount")) {
432
-
return0; // File exists
432
+
return0; // Mount success
433
433
} elseif (command.contains("rsync")) {
434
434
return0; // Rsync success
435
435
}
@@ -522,6 +522,8 @@ public void testExecuteWithMultipleVolumes() throws Exception {
0 commit comments