spec.sh: use wait