If a light can't withstand rain, it is a poor light. I know that doesn't answer your question but it is something to consider when purchasing lights.
I will pass along one hard earned tip about riding in the rain when it's dark, you can't judge the depth of water, it could be 1/4" deep or it could be hiding a 2' pot hole.