I heard from a friend that their professor also did that and the professor instead of locking down the class room as they should have done, they let someone in to the classroom and also once the test was over told everyone that they could leave