Fix swarm pending state tests Upstream-commit: 4a94a6513be00d86bec691cfefa21a1c63aab8d9 Component: engine