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

dev/core#1894 - Make CRM_Activity_Form_SearchTest::testQill less time-sensitive #17902

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Jul 21, 2020

Overview

https://lab.civicrm.org/dev/core/-/issues/1894

This test has failed twice recently near GMT 00:00 on different PRs. It maybe doesn't come up that often but it can be made less time sensitive.

Technical Details

Dataproviders run at a different time and in a potentially different context than the actual test that uses them. If the provider runs and calculates something based on current time/day, and then the clock ticks past midnight before the actual test runs, the test might calculate a different time/day so it won't match.

Comments

Is test

@civibot
Copy link

civibot bot commented Jul 21, 2020

(Standard links)

@eileenmcnaughton
Copy link
Contributor

The advantage of data providers is that it's not an all-or-nothing fail. But I agree that false fails is much more annoying

@demeritcowboy
Copy link
Contributor Author

Good point. It could be done as a dataprovider using anonymous callbacks as the array elements which you then call from the test itself, it just seemed too fancy.

@eileenmcnaughton
Copy link
Contributor

Yes - agree it might be overkill

@eileenmcnaughton eileenmcnaughton merged commit f9a012c into civicrm:master Jul 21, 2020
@demeritcowboy demeritcowboy deleted the test-activity-qill branch July 21, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants