Skip to content

Commit 9b4d168

Browse files
committed
Fix unit tests: replace systemd::service_limits with systemd::manage_dropin
1 parent 64ffba7 commit 9b4d168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/classes/solr_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
).with_content(%r{SOLR_ENV="/var/solr/solr.in.sh"})
105105
}
106106

107-
it { is_expected.to contain_systemd__service_limits('solr.service') }
107+
it { is_expected.to contain_systemd__manage_dropin('solr.service-90-limits.conf') }
108108
it { is_expected.to contain_limits__limits('solr/nofile') }
109109
it { is_expected.to contain_limits__limits('solr/nproc') }
110110

@@ -121,7 +121,7 @@
121121

122122
it { is_expected.to compile.with_all_deps }
123123

124-
it { is_expected.not_to contain_systemd__service_limits('solr.service') }
124+
it { is_expected.not_to contain_systemd__manage_dropin('solr.service-90-limits.conf') }
125125
it { is_expected.not_to contain_limits__limits('solr/nofile') }
126126
it { is_expected.not_to contain_limits__limits('solr/nproc') }
127127
end

0 commit comments

Comments
 (0)