Skip to content

Commit 08a9523

Browse files
Fixing assertion on the tests that are execting exceptions
1 parent 40886b3 commit 08a9523

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ public void testAttachVolumeCommandLibvirtException() {
10551055
assertNotNull(wrapper);
10561056

10571057
final Answer answer = wrapper.execute(command, libvirtComputingResource);
1058-
assertTrue(answer.getResult());
1058+
assertFalse(answer.getResult());
10591059

10601060
verify(libvirtComputingResource, times(1)).getLibvirtConnectionWrapper();
10611061
try {
@@ -1100,7 +1100,7 @@ public void testAttachVolumeCommandInternalErrorException() {
11001100
assertNotNull(wrapper);
11011101

11021102
final Answer answer = wrapper.execute(command, libvirtComputingResource);
1103-
assertTrue(answer.getResult());
1103+
assertFalse(answer.getResult());
11041104

11051105
verify(libvirtComputingResource, times(1)).getLibvirtConnectionWrapper();
11061106
try {

0 commit comments

Comments
 (0)