code: func (s *Simulation) WaitTillSnapshotRecreated(ctx context.Context, snap *simulations.Snapshot) error {
  	expected := getSnapshotConnections(snap.Conns)
  	ticker := time.NewTicker(150 * time.Millisecond)
  	defer ticker.Stop()
  
  	for {
  		select {
  		case <-ctx.Done():
  			return ctx.Err()
  		case <-ticker.C:
  			actual := s.getActualConnections()
  			if isAllDeployed(expected, actual) {
  				return nil
  			}
  		}
  	}
  }
docs: // WaitTillSnapshotRecreated is blocking until all the connections specified
  // in the snapshot are registered in the kademlia.
  // It differs from WaitTillHealthy, which waits only until all the kademlias are
  // healthy (it might happen even before all the connections are established).