Skip to content

Commit 37d3717

Browse files
(maint) ensure agent run mode for pluginsync test
1 parent c1a2cae commit 37d3717

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/unit/provider/augeas/augeas_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,9 @@ def make_tmpname((prefix, suffix), n)
10461046
end
10471047

10481048
it "alsoes load lenses from pluginsync'd path" do
1049+
# Puppet must be in agent mode for this test to successfully
1050+
# complete
1051+
allow(Puppet).to receive(:run_mode).and_return(Puppet::Util::UnixRunMode.new(:agent))
10491052
Puppet[:libdir] = my_fixture_dir
10501053

10511054
aug = provider.open_augeas

0 commit comments

Comments
 (0)