From e66ace927199613965e76afa82a7c01b206c1e85 Mon Sep 17 00:00:00 2001
From: Elian Kraja <e.kraja@nextworks.it>
Date: Tue, 4 Dec 2018 14:36:39 +0100
Subject: [PATCH] Fix notification handler on the ncm loop

---
 .../InstantiateVNFTaskWithCheckAndNotifications.robot        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot b/SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
index 68521a89..a93b7bdc 100644
--- a/SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
+++ b/SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
@@ -121,13 +121,14 @@ Verify Notification Handler
     
 Wait Until VNF Instantiated
     [Arguments]    ${vnfLcmOpOccId}
+    ${req}=    Start Notification Handler     VnfLcmOperationOccurrenceNotification    ${callback_endpoint}
     :FOR    ${i}    IN RANGE    20
-    \    ${req}=    Start Notification Handler     VnfLcmOperationOccurrenceNotification    ${callback_endpoint}
     \    Sleep    10s
-    \    Verify Notification Handler     ${req}
+    \    Verify Mock Expectation     ${req}
     \    Get  ${vnfLcmOpOccId}
     \    ${body}=    Output    response body
     \    Exit For Loop If    ${body.operationState} == COMPLETED
+	Clear Requests  ${callback_endpoint}
 
     
     
\ No newline at end of file
-- 
GitLab