We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d99fb commit 9fed43dCopy full SHA for 9fed43d
lib/puppet/test/test_helper.rb
@@ -182,13 +182,8 @@ def self.after_each_test()
182
end
183
$saved_indirection_state = nil
184
185
- # Restore the global process environment. Can't just assign because this
186
- # is a magic variable, sadly, and doesn't do that™. It is sufficiently
187
- # faster to use the compare-then-set model to avoid excessive work that it
188
- # justifies the complexity. --daniel 2012-03-15
189
- if ENV.to_hash != $old_env
190
- ENV.replace($old_env)
191
- end
+ # Restore the global process environment.
+ ENV.replace($old_env)
192
193
# Clear all environments
194
Puppet.lookup(:environments).clear_all
0 commit comments