Skip to content

Test 'LaunchingAnActionInTheFuture' does not fail when scheduler_delay > expectation_delay #7

@deanrad

Description

@deanrad

Given the following, shouldn't the test fail if the scheduled code runs after the code that runs the assertion ? What is the reason for this behavior, if it's not a bug ?

    var received = '';
    var expectation_delay = 200; 
    var scheduler_delay = 500; 
    Rx
        .Scheduler
        .immediate
        .schedule(function() { received = 'Finished'; }, scheduler_delay);

    setTimeout(function() { equals(received, 'Finished'); start(); }, expectation_delay);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions