means that
even a prolonged period of difficulty can eventually give way to a change for the better.
similar to
The longest day must have an end. The darkest hour is that before the dawn.
Imagine a case where nothing goes on forever, changes are inevitable.; then “It is a long lane that has no turning” fits well.