Use proper promise resolution to make definition fail.