vasiliy-vdovichenko / ncrontab

Automatically exported from code.google.com/p/ncrontab
Apache License 2.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 .

Original issue reported on code.google.com by jan.verh...@gmail.com on 25 Nov 2008 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by azizatif on 3 Feb 2009 at 1:52

GoogleCodeExporter commented 8 years ago

Original comment by azizatif on 3 Feb 2009 at 1:52

GoogleCodeExporter commented 8 years ago
Fixed in r19. Thanks.

Original comment by azizatif on 3 Feb 2009 at 1:54

GoogleCodeExporter commented 8 years ago
Issue 4 has been merged into this issue.

Original comment by azizatif on 12 Aug 2010 at 6:06