Skip to content

Make plugins/reporting config snapshot deterministic#38019

Merged
chandlerprall merged 1 commit into
elastic:masterfrom
chandlerprall:bug/deterministicize-unittest
Jun 4, 2019
Merged

Make plugins/reporting config snapshot deterministic#38019
chandlerprall merged 1 commit into
elastic:masterfrom
chandlerprall:bug/deterministicize-unittest

Conversation

@chandlerprall
Copy link
Copy Markdown
Contributor

Summary

x-pack/plugins/reporting/index.test.js snapshots a call to os.cpus(), making the test fail on differing cpu architectures. This mocks the cpus function on os to make the test deterministic.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials
- [ ] Unit or functional tests were updated or added to match the most common scenarios
- [ ] This was checked for keyboard-only and screenreader accessibility

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chandlerprall chandlerprall merged commit f8a75dc into elastic:master Jun 4, 2019
@chandlerprall chandlerprall deleted the bug/deterministicize-unittest branch June 4, 2019 20:25
chandlerprall added a commit to chandlerprall/kibana that referenced this pull request Jun 4, 2019
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
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