Wait for open to finish before making assertion
Wait for open to finish before making assertion

Previously, this was just relying on a 0ms wait. After this change we
actually wait until the open call completes.

atom/deprecation-cop