pentf
    Preparing search index...

    Function assertAsyncEventually

    • Assert that an asynchronously evaluated condition is eventually true.

      Parameters

      • testfunc: () => Promise<any>

        The async test function. Must return true to signal success.

      • Optionalmessage: {
            checkEvery?: number;
            crashOnError?: boolean;
            message?: string;
            timeout?: number;
        } = {}

        Error message shown if the condition never becomes true within the timeout.

      Returns Promise<any>