Discard large metadata items first
[oweals/gnunet.git] / src / integration-tests / gnunet_testing.py.in
index 7f8c97637335ef04f8840003ea4c6865366f4a70..0e3cdaaf8228386647424f8d742f54a5d5b55a67 100644 (file)
@@ -51,10 +51,15 @@ class Check:
             time.sleep(1)
             execs += 1
         if ((False == res) and (execs >= timeout)):
-           print ('Check had timeout after ' +str(timeout)+ 'seconds')
+           print ('Check had timeout after ' +str(timeout)+ ' seconds')
+           neg_cont (self)
+        elif ((False == res) and (execs < timeout)):
+            if (None != neg_cont):
+                neg_cont (self)
         else:
-            pos_cont (self)
-        return res            
+            if (None != pos_cont):
+                pos_cont (self)
+        return res     
     def run_once (self, pos_cont, neg_cont):
         execs = 0;
         res = False