Skip to content
Commits on Sep 13, 2012
  1. Change timings in the failing test.

    committed Sep 13, 2012
    Appears to be some kind of race condition within the test suite. This
    is just an attempt at seeing whether it is fixed on travis.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Sep 11, 2012
  1. Specify context for onComplete.

    committed Sep 11, 2012
    It seems to be a nice feature that the oncomplete method be allowed to
    have a specific context within which to execute (GH-47).
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Aug 30, 2012
  1. Artifially bump only cron style times. (GH-43)

    committed Aug 30, 2012
    We were artificially bumping all crontimes by 1 second to ensure that
    the timeout didn't fire on repetitive jobs many times (omg fire
    now...and again, and again and so on...). This was incorrect and
    unexpected behavior for specific date/time values. We now only bump cron
    style date/time values.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  2. Reset the time.

    committed Aug 30, 2012
    It may be nice to be able to reset the time on a cronjob. In order to do
    this we need to assert that the time is a CronTime, assert that the
    existing job has been stopped (assume that the stop function is
    working), and then change the time. We leave it up to the user to
    restart the job.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Jul 26, 2012
  1. @danhbear
Commits on Jul 24, 2012
  1. @danhbear
Commits on Jul 3, 2012
  1. @calmh

    Add test case for long wait

    calmh committed Jul 3, 2012
    When scheduling a job 32 days into the future, we should not get the
    callback within 250 ms.
Commits on May 25, 2012
  1. Merge branch 'master' of https://github.com/toots/node-cron

    committed May 25, 2012
    Conflicts:
    	tests/test-cron.js
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on May 24, 2012
  1. Fix tests and make sure onComplete runs - GH-35.

    committed May 24, 2012
    onComplete wasn't being called correctly. While it was being passed to
    the onTick calls appropriately it should have been fired when the job
    was explicitly stopped or when the timer ran out, not to be run again.
    This wasn't happening.
    
    Additionally, the tests for onComplete were really bad. They were
    expecting that the onTick fire off the onCompletes. That is...lacking to
    say the least. This has now been fixed as well.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on May 9, 2012
  1. Failing test for dates to make sure they fire only once.

    committed May 9, 2012
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Apr 25, 2012
  1. @toots

    Various fixes.

    toots committed Apr 25, 2012
  2. Time module is not required to run this module. However, if you want …

    committed Apr 24, 2012
    …your timezone functionality, you will need it. I've added it as a dev dep for the sake of testing.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Apr 24, 2012
  1. @danhbear

    Fix tests after timezone rebase

    danhbear committed Apr 24, 2012
  2. @danhbear

    Add tests, re-organize slightly to support testing CronTime.sendAt wi…

    danhbear committed Apr 24, 2012
    …th arbitrary start times.
  3. @danhbear

    CronTime.sendAt: quick fix for issue where seconds/minute/hour cause …

    danhbear committed Apr 16, 2012
    …roll-over to 2 days away.
Commits on Apr 22, 2012
  1. Check timezone output as well as hours. Also, using notEquals rather …

    committed Apr 22, 2012
    …than ok on tests.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Apr 21, 2012
  1. @toots
Commits on Apr 10, 2012
  1. Fixed a bug related to date objects. The ms time representation was g…

    committed Apr 9, 2012
    …etting blown out in a code path expected of true cron style syntax. Since real dates are not that, we can skip that and keep the time true.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  2. setTimeout takes ms...herp derp.

    committed Apr 9, 2012
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  3. Version should be 0.2.0, merged conflict with testing and removed new…

    committed Apr 9, 2012
    …ly unecessary code in test.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  4. Test new constructor code that accepts an object which specifies the …

    committed Apr 9, 2012
    …parameters of the constructor (better).
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  5. Fixed up failure in testing ranges...just wait til the minute passes.…

    committed Apr 9, 2012
    … Also, added a parameter to the constructor to start the job. It will no longer start automatically otherwise.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  6. Shorten testing period to make it less likely to overlap (this doesn'…

    committed Apr 9, 2012
    …t remove the issue/maybe worth removing the test?).
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Nov 28, 2011
  1. Stop should set running to false (short circuit otherwise). Also, tes…

    committed Nov 28, 2011
    …t start and stop.
    
    Signed-off-by: Nick Campbell <nick@perfectsensedigital.com>
Commits on Oct 5, 2011
  1. Tests now accurately stop rather than live forever.

    committed Oct 5, 2011
    Signed-off-by: Nick Campbell <nick@perfectsensedigital.com>
  2. Better test timeouts.

    committed Oct 5, 2011
    Signed-off-by: Nick Campbell <nick@perfectsensedigital.com>
Commits on Sep 25, 2011
  1. Updated tests to support the +1 second in timing. Also, updated code …

    committed Sep 25, 2011
    …to support the existing onComplete API.
    
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Commits on Aug 5, 2011
  1. @humanchimp
Commits on Apr 9, 2011
  1. Updated deps, committers, and scripts.

    committed Apr 9, 2011
    Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Something went wrong with that request. Please try again.