Sha256: 99526620cbb804efc61cd5b75c742b103a45e089e3b2ed90d9bfb9b96827a460

Contents?: true

Size: 521 Bytes

Versions: 26

Compression:

Stored size: 521 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'

describe Puppet::Parser::Functions do
  before :each do
    Puppet::Parser::Functions.rmfunction("template") if Puppet::Parser::Functions.functions.include?("template")
  end

  it "should support multiple threads autoloading the same function" do
    threads = []
    lambda {
      10.times { |a|
        threads << Thread.new {
          Puppet::Parser::Functions.function("template")
        }
      }
    }.should_not raise_error
    threads.each { |t| t.join }
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/integration/parser/functions_spec.rb
puppet-2.7.19 spec/integration/parser/functions_spec.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/integration/parser/functions_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
puppet-2.7.18 spec/integration/parser/functions_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
puppet-2.7.17 spec/integration/parser/functions_spec.rb
puppet-2.7.16 spec/integration/parser/functions_spec.rb
puppet-2.7.14 spec/integration/parser/functions_spec.rb
puppet-2.7.13 spec/integration/parser/functions_spec.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
puppet-2.7.12 spec/integration/parser/functions_spec.rb
puppet-2.7.11 spec/integration/parser/functions_spec.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/integration/parser/functions_spec.rb