From 46298a049db5355bfb3066943cf3fe5ca9306848 Mon Sep 17 00:00:00 2001 From: sheena Date: Mon, 14 Sep 2020 13:33:30 +0100 Subject: [PATCH] (IAC-1143) Adding temporary workaround for facter failures. --- spec/unit/facter/apt_dist_has_updates_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/unit/facter/apt_dist_has_updates_spec.rb b/spec/unit/facter/apt_dist_has_updates_spec.rb index 216050d..7846632 100644 --- a/spec/unit/facter/apt_dist_has_updates_spec.rb +++ b/spec/unit/facter/apt_dist_has_updates_spec.rb @@ -7,6 +7,8 @@ describe 'apt_has_dist_updates fact' do describe 'on non-Debian distro' do before(:each) do + # Adding temporary workaround for this ticket https://tickets.puppetlabs.com/browse/IAC-1143 + Facter.clear allow(Facter.fact(:osfamily)).to receive(:value).once.and_return('Redhat') end it { is_expected.to be_nil } -- 2.45.2