Skip to content

Commit d720628

Browse files
vishesh92dhslove
authored andcommitted
Fix unit test failure (apache#9238)
1 parent b75d6a8 commit d720628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtConvertInstanceCommandWrapperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public void testGetUnmanagedInstanceDisks() {
214214

215215
LibvirtDomainXMLParser parser = Mockito.mock(LibvirtDomainXMLParser.class);
216216
Mockito.when(parser.getDisks()).thenReturn(List.of(diskDef));
217+
Mockito.doReturn(new Pair<String, String>(null, null)).when(convertInstanceCommandWrapper).getNfsStoragePoolHostAndPath(destinationPool);
217218

218219
List<UnmanagedInstanceTO.Disk> unmanagedInstanceDisks = convertInstanceCommandWrapper.getUnmanagedInstanceDisks(disks, parser);
219220
Assert.assertEquals(1, unmanagedInstanceDisks.size());

0 commit comments

Comments
 (0)