Converting sleep into a working WUKS
[integration.git] / test / csit / suites / openflowplugin / Performance_Flow_Config / 020_Stats_Collection_Gauss.robot
index 3a09b735cd6d6403bcee12efdb99816df17251f6..28d4cf1b02646e3fa10c10aa2d316ca09279139c 100644 (file)
@@ -51,9 +51,8 @@ Connect Switches
     Read Until    ${linux_prompt}
     Write    sudo mn --controller=remote,ip=${CONTROLLER} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13
     Read Until    mininet>
-    Sleep    10s
     Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
-    Are Switches Connected Topo
+    Wait Until Keyword Succeeds    10s    1s    Are Switches Connected Topo
 
 Stop Switches
     [Documentation]    Stops mininet