Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test CrontabScheduleTests.DontLoopIndefinitely fails, TimeCron method contains error #2

Closed
atifaziz opened this issue Aug 20, 2015 · 4 comments

Comments

@atifaziz
Copy link
Owner

Originally reported on Google Code with ID 2

What steps will reproduce the problem?
1. Build the solution
2. Run unit test without attaching debugger


What is the expected output? What do you see instead?
Expected: green result
Instead: DontLoopIndefinitely is red

What version of the product are you using? On what operating system?
NCrontab 0.2


Please provide any additional information below.
Body of TimeCron should be changed:

if (worker.Join(!Debugger.IsAttached ? (int)limit.TotalMilliseconds :
Timeout.Infinite))

instead of

if (worker.Join(!Debugger.IsAttached ? limit.Milliseconds : Timeout.Infinite))

=> use the TotalMilliseconds property of a TimeSpan .

Reported by jan.verhaeghe on 2008-11-25 09:07:25

@atifaziz
Copy link
Owner Author

Reported by azizatif on 2009-02-03 13:52:05

  • Status changed: Accepted

@atifaziz
Copy link
Owner Author

Reported by azizatif on 2009-02-03 13:52:42

  • Status changed: Started
  • Labels added: Component-Tests

@atifaziz
Copy link
Owner Author

Fixed in r19. Thanks.

Reported by azizatif on 2009-02-03 13:54:45

  • Status changed: Fixed

@atifaziz
Copy link
Owner Author

Issue 4 has been merged into this issue.

Reported by azizatif on 2010-08-12 06:06:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant