Wait for mock server