Cosmic-ray transport in accelerating flows