Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7340

context_spec.rb fails when run in isolation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.10.0
    • 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,

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support