Skip to main content

setup_user_with_sleeper

Function setup_user_with_sleeper 

Source
pub async fn setup_user_with_sleeper<B, F, Fut>(
    broker: &B,
    project_id_env: Option<String>,
    sleeper: F,
) -> Result<UserData, SetupError>
where B: CredentialBroker + ?Sized, F: Fn(Duration) -> Fut, Fut: Future<Output = ()>,
Expand description

Same as setup_user, but the caller injects a sleeper (test seam). The polling loop is bounded by ONBOARDING_MAX_ATTEMPTS regardless.