A method for testing the patency of an endoscopic channel in an endoscope washing machine. In the method, the entrance of the channel is pressurized and then blocked, whereupon the pressure change at the entrance is measured. Where the channel is pressurized using a sequence of pressure pulses, and the maximum and minimum values thereof are determined.