Skip to content

Conversation

dreis2211
Copy link
Contributor

@dreis2211 dreis2211 commented Oct 26, 2018

Hi,

while working on another PR I stumbled upon a test failure in MetricsAutoConfigurationTests caused by changes in micrometer.

In theory, this should work without the removal of the spy() call (although it's not needed here anyway if you ask me), but it doesn't. With the spy() call the array is empty, without it it's filled. I wonder why, but maybe you can enlighten me. Maybe because the field is volatile now?

Let me know what you think.
Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 26, 2018
@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 26, 2018
@philwebb philwebb added this to the 2.1.x milestone Oct 26, 2018
@philwebb philwebb closed this in fb03139 Oct 26, 2018
philwebb added a commit that referenced this pull request Oct 26, 2018
* pr/14972:
  Fix MetricsAutoConfigurationTests
@philwebb
Copy link
Member

I'm surprised the field access worked at all with the spy in place. I've no idea what change caused it to be an empty array. Thanks for the PR!

@philwebb philwebb modified the milestones: 2.1.x, 2.1.0 Oct 26, 2018
@mbhave
Copy link
Contributor

mbhave commented Oct 27, 2018

Probably has something to do with the filters getting set in an inner class. The spy must've worked before because it was modifying the same list but now points to a new array.

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

Successfully merging this pull request may close these issues.

4 participants