bug 1056380 - prevent double-attach

Do we need `1000` for this? Can we just have `0` or `1` for the wait, inside the `onAttach`, after the assertion?