Skip to content

Reduce number of compiles in rspec tests#621

Merged
traylenator merged 1 commit into
voxpupuli:masterfrom
traylenator:gonzales
Apr 28, 2026
Merged

Reduce number of compiles in rspec tests#621
traylenator merged 1 commit into
voxpupuli:masterfrom
traylenator:gonzales

Conversation

@traylenator
Copy link
Copy Markdown
Contributor

Pull Request (PR) description

Refactor spec tests for init.pp

Running

time bundle exec rspec --fail-fast ./spec/classes/init_spec.rb

Before patch:

Executed in  335.66 secs    fish           external
   usr time  319.33 secs    2.08 millis  319.32 secs
   sys time   16.21 secs    0.00 millis   16.21 secs

After patch:

Executed in  285.43 secs    fish           external
   usr time  275.95 secs   49.49 millis  275.90 secs
   sys time    9.00 secs    2.81 millis    9.00 secs

Running

```
time bundle exec rspec --fail-fast ./spec/classes/init_spec.rb
```

Before patch:

```
Executed in  335.66 secs    fish           external
   usr time  319.33 secs    2.08 millis  319.32 secs
   sys time   16.21 secs    0.00 millis   16.21 secs
```

After patch:

```
Executed in  285.43 secs    fish           external
   usr time  275.95 secs   49.49 millis  275.90 secs
   sys time    9.00 secs    2.81 millis    9.00 secs
```
@traylenator
Copy link
Copy Markdown
Contributor Author

I thought it would make more a difference :-(

@traylenator traylenator merged commit 79a9069 into voxpupuli:master Apr 28, 2026
22 checks passed
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.

2 participants