I'm replacing an old fixture into a new light fixture and ran into an issue where it does not respond to position of the wall switch.
There are two pairs of wires coming from the wall into the socket. One pair is always on (voltmeter shows 120V) and one pair is always off, regardless of the switch position. Measurement between white from one pair and black from another pair shows fluctuating result around 60V.
I did not record how the old fixture was wired, but I vaguely recall that either two black wires or two white wires were connected and this struck me as odd.
Why is it wired like this? Is this a case of bad wiring? How do I correctly wire up the light so that it can be controlled by the switch?