Sha256: fd5ed7ea85cf6bb34bc9256983146c48377f38eaf042a3b800eeca7d1c5a0ddb

Contents?: true

Size: 383 Bytes

Versions: 8

Compression:

Stored size: 383 Bytes

Contents

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

describe Puppet::Parser::Functions do
  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

8 entries across 8 versions & 1 rubygems

Version Path
puppet-2.7.26 spec/integration/parser/functions_spec.rb
puppet-2.7.25 spec/integration/parser/functions_spec.rb
puppet-2.7.24 spec/integration/parser/functions_spec.rb
puppet-2.7.23 spec/integration/parser/functions_spec.rb
puppet-2.7.22 spec/integration/parser/functions_spec.rb
puppet-2.7.21 spec/integration/parser/functions_spec.rb
puppet-2.7.20 spec/integration/parser/functions_spec.rb
puppet-2.7.20.rc1 spec/integration/parser/functions_spec.rb