means that
the reliability of friendship becomes particularly apparent when someone faces adversity and needs genuine support.
also
A friend in need is a friend indeed.
Imagine a case where a real friend is someone who will help you when you are in trouble; and he or she is the only friend worth having.; then “Adversity is the only balance to weigh friends” fits well.