Skip to content

Using setTimeout with one time event no longer works #119

@nmccann

Description

@nmccann

Hi,

I recently noticed that one time events were no longer being executed, and eventually narrowed it down to the following this 5dcecba

The scheduleTimeout function seems to return early if there is no next occurrence (seems related to #103). Is this intentional?

An example of my schedule: Later.parse.recur().on(localDate.toDate()).fullDate()

I added an example of a failing test to a my fork: nmccann@e509ee9

I would also like to say thank you for the wonderful library, and I'm happy to see you're updating it again :)

Sidenote: When I'm running tests on the latest commit, it just says 10 passing (44ms), but on previous commits it would say 41709 passing (16s) 1 pending. I put a console.log in one of the tests but it didn't show up. It seems like its skipping some tests.

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