It depends on the light. If it is a light that I know is not only run by a sensor, but also will not trigger for a bike, I'll proceed as soon as it is safe to do so, unless a car is coming that will trigger it, in which case I'll wait for him/her.
If it is a light that I don't know...well it might take me a few cycles to figure out that it's defective.