I saw a part of this movie my dad was watching when I was quite young. Here's the scene, from a movie I saw on TV in the early 2000s:
A man enters an underground (?) trial area. I remember it looking cave-like with torch lighting.
He is given a glass of water
He must navigate across tightropes or shaky bridges without spilling a drop
He accomplishes this, but when he gets to the end he must retrieve an object from a fiery altar (Sword, maybe?)
He drinks the water from the glass, and the flame is extinguished
I feel as though he had a small audience of men who belonged to this trial-giving group.
I had a short childhood with my father, and I remember a lot of movies that I only partially saw with him -- I'm building a bit of a library of his interests.
The drinking of water to extinguish the flame definitely puts this in a fantasy category. Maybe it was a kung-fu movie? Maybe this was just an episode of some daytime gladiator drama?