api changes
[oweals/gnunet.git] / src / integration-tests / test_integration_restart.py.in
index f8becb66a417021593f8e0ee3dc51da93c2d8386..e2a72e7291d033417f92d257210a4350134dfb0c 100755 (executable)
@@ -68,7 +68,7 @@ def success_restart_cont (check):
 def fail_restart_cont (check):    
        global success 
        success = False;
-       check.eval(True)   
+       check.evaluate(True)   
     
 
 def success_connect_cont (check):
@@ -95,13 +95,13 @@ def success_connect_cont (check):
        check.add (StatisticsCondition (server, 'topology', '# peers connected',1))
        check.add (StatisticsCondition (server, 'fs', '# peers connected',1))  
        
-       check.run_blocking (10, success_restart_cont, fail_restart_cont)
+       check.run_blocking (check_timeout, success_restart_cont, fail_restart_cont)
 
 
 def fail_connect_cont (check):    
     global success 
     success= False;
-    check.eval(True)
+    check.evaluate(True)
 
 
 def check_connect ():
@@ -118,7 +118,7 @@ def check_connect ():
        check.add (StatisticsCondition (server, 'topology', '# peers connected',1))
        check.add (StatisticsCondition (server, 'fs', '# peers connected',1))  
        
-       check.run_blocking (10, success_connect_cont, fail_connect_cont)
+       check.run_blocking (check_timeout, success_connect_cont, fail_connect_cont)
 
 # 
 # Test execution