The MOCK_HOSTNAME is not sufficiently long

 Make it longer to make it more likely that it will be longer than the hostname on the current host.  Make it crazy long.