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

cron4s.lib.js.JSDateSpec is flaky #418

Open
fthomas opened this issue Oct 1, 2021 · 1 comment
Open

cron4s.lib.js.JSDateSpec is flaky #418

fthomas opened this issue Oct 1, 2021 · 1 comment

Comments

@fthomas
Copy link

fthomas commented Oct 1, 2021

JSDateSpec sometimes fails:

It looks like tests fail for dates where the day is the 31 and the month is set to a month that has less than 31 days.

@i10416
Copy link
Contributor

i10416 commented Jun 3, 2023

It seems invalid dates(e.g. 09/31,11/31) are created by property testing. Why does this happen only on JS platform?

IsDateTime[JSDate, Month].dateTime.immutability *** FAILED ***
[info]   InvalidFieldValue was thrown during property evaluation.
[info]     Message: Value 9 is not valid for field Month
[info]     Occurred when passed generated values (
[info]       arg0 = Tue May 31 2016 01:58:54 GMT+0000 (Coordinated Universal Time),
[info]       arg1 = CronFieldValue(Month,9)
[info]     )
IsDateTime[JSDate, Month].dateTime.settable *** FAILED ***
[info]   InvalidFieldValue was thrown during property evaluation.
[info]     Message: Value 11 is not valid for field Month
[info]     Occurred when passed generated values (
[info]       arg0 = Wed Jul 31 1991 10:09:59 GMT+0000 (Coordinated Universal Time),
[info]       arg1 = CronFieldValue(Month,11)
[info]     )
[info]   Init Seed: -3201136346395326777

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

No branches or pull requests

2 participants