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
@@ -394,7 +394,7 @@ public void testExecuteWithRsyncFailure() throws Exception {
394
394
.thenAnswer(invocation -> {
395
395
Stringcommand = invocation.getArgument(0);
396
396
if (command.contains("mount")) {
397
-
return0; // File exists
397
+
return0; // mount success
398
398
} elseif (command.contains("rsync")) {
399
399
return1; // Rsync failure
400
400
}
@@ -453,7 +453,7 @@ public void testExecuteWithAttachVolumeFailure() throws Exception {
453
453
.thenAnswer(invocation -> {
454
454
Stringcommand = invocation.getArgument(0);
455
455
if (command.contains("mount")) {
456
-
return0; // File exists
456
+
return0; // Mount success
457
457
} elseif (command.contains("rsync")) {
458
458
return0; // Rsync success
459
459
}
@@ -551,6 +551,8 @@ public void testExecuteWithMultipleVolumes() throws Exception {
0 commit comments