Commits

Maciej Fijalkowski committed 577b7b5

report errros

Comments (0)

Files changed (1)

asynchammer/asynchammer.py

         else:
             self.done += 1
             if self.done == 11:
-                assert self.errors <= 11
                 reactor.stop()
 
-    def finish(self, *args):
+    def finish(self, fail):
+        print fail
+        self.next()
         self.errors += 1
 
     def got_protocol(self, p):
     def print_stats(self):
         reqs = int(self.counter / (time.time() - self.t0))
         print "Req/s %d" % reqs
+        print "Errors: %d" % self.errors
             
 point = TCP4ClientEndpoint(reactor, "localhost", 80)