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

Speed up the AIX hostname spec #1513

Merged
merged 1 commit into from
Sep 17, 2020
Merged

Speed up the AIX hostname spec #1513

merged 1 commit into from
Sep 17, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Sep 16, 2020

Mock out #resolve_fqdn like we do in all the other plugins to avoid actually checking the fqdn on the host running the specs.

This was our #2 slowest spec:

  Ohai::System AIX hostname plugin sets the machinename
    0.85031 seconds ./spec/unit/plugins/aix/hostname_spec.rb:30

Signed-off-by: Tim Smith tsmith@chef.io

Mock out #resolve_fqdn like we do in all the other plugins to avoid actually checking the fqdn on the host running the specs.

This was our #2 slowest spec:

```
  Ohai::System AIX hostname plugin sets the machinename
    0.85031 seconds ./spec/unit/plugins/aix/hostname_spec.rb:30
```

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners September 16, 2020 23:25
@tas50 tas50 merged commit 5a78d5f into master Sep 17, 2020
@tas50 tas50 deleted the faster_spec branch October 30, 2020 22:16
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.

None yet

2 participants