Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Test
t
.travis.yml
META6.json
README.md

README.md

Build Status

Test::Time

Use Test::Scheduler to use on your tests, not only Promises, but sleep, now and time.

    my $started = now;
    $*SCHEDULER = mock-time :auto-advance;

    sleep 10;
    say "did it passed { now - $started } seconds?";
    unmock-time;

    say "No, just passed { now - $started } seconds!";

    #`{{{
    Output:
        did it passed 10.0016178 seconds?
        No, just passed 0.07388266 seconds!
    }}}

Or you can use $*SCHEDULER.advance-by: 10 as you would when using Test::Scheduler

You can’t perform that action at this time.