Fix race condition in TestDockerCommandWithRunnerServiceEnvironmentVariables

What does this MR do?

Fix race condition in TestDockerCommandWithRunnerServiceEnvironmentVariables

This fixes a race condition that happens a lot in CI. I attribute this to the same as was recently the case with TestDockerServiceHealthcheckOverflow and fixed with !5985 (merged).

Use that MR description for context on the cause and fix for this race condition.

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports

Loading