Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Puppet Developer Experience
-
1
-
PDE 2017-03-22, PDE 2017-04-05
-
Not Needed
-
No Action
-
testing change
Description
Getting an error when running context_spec.rb in isolation on 4.9.4 and later:
$ bundle exec rspec spec/unit/pops/lookup/context_spec.rb
|
Run options: exclude {:broken=>true, :benchmark=>true}
|
.................F...
|
|
Failures:
|
|
1) Puppet::Pops::Lookup::Context an instance with cached_file_data and multiple compilations will invalidate cache if file changes
|
Failure/Error: expect(logs).to eql(["{parsed => a: value a\n}", "{parsed => b: value b\n}"])
|
|
expected: ["{parsed => a: value a\n}", "{parsed => b: value b\n}"]
|
got: ["{parsed => a: value a\n}", "{parsed => a: value a\n}"]
|
|
(compared using eql?)
|
|
Diff:
|
@@ -1,3 +1,3 @@
|
{parsed => a: value a\n}
|
-{parsed => b: value b\n}
|
+{parsed => a: value a\n}
|
|
# ./spec/unit/pops/lookup/context_spec.rb:228:in `block (5 levels) in <module:Lookup>'
|
The error doesn't show up in travis/appveyor, so guessing it's order dependent failure.
See c150f76f540b89b8eeef27aee36caf7564e829de and PUP-7305,