Emulator wait fix for Travis