Skip to content

Conversation

@andreabergia
Copy link
Contributor

It's an inconsistent behavior that has caused a flaky test failure in the CI.

I've only removed the test case with the "current instant", not the whole test, although really all of these seem kinda obsolete and superset by test262, frankly. They also contain JS implementation of date methods, like this LocalTime function, which are pretty complex.
According to Claude at least, there's likely a discrepancy between the daylight savings time behavior, but I didn't investigate much further.

Fixes #2187

It's an inconsistent behavior that has caused a flaky test failure
[in the CI](https://github.com/mozilla/rhino/actions/runs/19851039740/job/56877721100#step:5:278).

I've only removed the test case with the "current instant", not the
whole test, although really all of these seem kinda obsolete and
superset by test262, frankly. They also contain JS implementation
of date methods, like this [LocalTime](
https://github.com/mozilla/rhino/blob/e3d6b16aa233e0a427bf1dfe6b4ba3645213b924/tests/testsrc/tests/ecma/shell.js#L304)
function, which are pretty complex.
According to Claude at least, there's likely a discrepancy between the
daylight savings time behavior, but I didn't investigate much further.
@andreabergia andreabergia marked this pull request as draft December 2, 2025 16:35
@andreabergia
Copy link
Contributor Author

Apparently there are other tests flapping today, see https://github.com/mozilla/rhino/actions/runs/19864734129/job/56924144927?pr=2190

So I don't think this is a good solution.

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

Successfully merging this pull request may close these issues.

Flapper test

1 participant