  
      # sleep enough for the first poll to time out
      # TOOD: fix loggerd bug dropping the msgs from the first poll
      managed_processes["loggerd"].start()
      time.sleep(2)
  
      sent_msgs = defaultdict(list)
      for _ in range(random.randint(2, 10) * 100):
        for s in services:
          try:
 
</s> remove       time.sleep((num_segs + 1) * length)
 </s> add       time.sleep(num_segs*length + 1) </s> remove def reset_pandas(f):
  @wraps(f)
  def wrapper(*args, **kwargs):
    for serial in Panda.list():
      p = Panda(serial)
      for i in [0, 1, 2, 3, 0xFFFF]:
        p.can_clear(i)
      p.reset()
      p.close()
    f(*args, **kwargs)
  return wrapper


 </s> add  </s> remove from functools import wraps
 </s> add  </s> remove from panda import Panda
 </s> add  </s> remove       time.sleep(0.01)
 </s> add 
    for s in services:
      while not pm.all_readers_updated(s):
        time.sleep(0.1)
  
      # sleep enough for the first poll to time out
      # TOOD: fix loggerd bug dropping the msgs from the first poll
      managed_processes["loggerd"].start()
    for s in services:
      while not pm.all_readers_updated(s):
        time.sleep(0.1)
  
      sent_msgs = defaultdict(list)
      for _ in range(random.randint(2, 10) * 100):
        for s in services:
          try:
keep keep keep keep replace keep keep keep keep keep
 faster jenkins (#22973)

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/loggerd/tests/test_loggerd.py