Use #wait instead of sleeping in Promise specs

The spec seems fragile otherwise