How do I know if baby is deaf?

Has anyone had a baby fail two hearing tests? Does this automatically mean they were for sure deaf? How long did it take you to know?

My daughter did. I took her to an ENT, he did a CT, turns out she had way too much fluid built up. He put tubes in her ears and voila- she could hear.