DaanHoogland commented on code in PR #8098:
URL: https://github.com/apache/cloudstack/pull/8098#discussion_r1371394761


##########
plugins/network-elements/tungsten/src/test/java/org/apache/cloudstack/network/tungsten/service/TungstenServiceImplTest.java:
##########
@@ -1759,11 +1662,10 @@ public void removeNetworkGatewayFromLogicalRouterTest() 
{
 
     @Test
     public void deleteLogicalRouterTest() {
-        TungstenAnswer tungstenAnswer = mock(TungstenAnswer.class);
+        TungstenAnswer tungstenAnswer = new 
MockTungstenAnswerFactory(true).get();
 
         
when(tungstenFabricUtils.sendTungstenCommand(any(DeleteTungstenRoutingLogicalRouterCommand.class),
 anyLong())).thenReturn(tungstenAnswer);
-        when(tungstenAnswer.getResult()).thenReturn(true);
 
         assertTrue(tungstenService.deleteLogicalRouter(1L, 
"948f421c-edde-4518-a391-09299cc25dc2"));
     }
-}
+}

Review Comment:
   ```suggestion
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to