In some situations, the test_mp3_duration_estimate test may fail due to the fact that we're using a fractional sample rate in the test (1234.56 Hz) as a "stress test." This PR makes the test more deterministic by reading the entire contents of the test audio file until exact_duration_known is True, which ensures that the ResampledReadableAudioFile pulls through all of the audio data from its underlying file object.
In some situations, the
test_mp3_duration_estimate
test may fail due to the fact that we're using a fractional sample rate in the test (1234.56 Hz) as a "stress test." This PR makes the test more deterministic by reading the entire contents of the test audio file untilexact_duration_known
isTrue
, which ensures that theResampledReadableAudioFile
pulls through all of the audio data from its underlying file object.