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

[TEST] Fix intermittent test fail on NULL array getting contaminated #14542

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 14, 2019

Overview

Fixes a hard-to-diagnose test bug where certain combinations of tests don't pass due to variable contamination. This could cause bugs on live but we don't have any known cases

Before

CRM_Core_DAO::$_nullArray passed to profileCreate but in the test it is actually not null & causes a fail

After

empty var passed

Technical Details

This took a lot of bisecting to find :-(

Comments

Anything else you would like the reviewer to note

@civibot
Copy link

civibot bot commented Jun 14, 2019

(Standard links)

@civibot civibot bot added the master label Jun 14, 2019
@eileenmcnaughton eileenmcnaughton changed the title Fix intermittent test fail on NULL array getting contaminated & causi… [TEST] Fix intermittent test fail on NULL array getting contaminated Jun 14, 2019
@seamuslee001
Copy link
Contributor

Test fails look related @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor Author

trying again

@seamuslee001
Copy link
Contributor

This has passed and given it mainly affects tests i'm going to merge it

@seamuslee001 seamuslee001 merged commit d7b862d into civicrm:master Jun 15, 2019
@seamuslee001 seamuslee001 deleted the tests branch June 15, 2019 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants