                             :name "allow all"}]}})
 
 (schema/defn ^:always-validate
-jruby-puppet-config :- JRubyPuppetTKConfig
+  jruby-puppet-config :- JRubyPuppetTKConfig
   "Create a JRubyPuppetConfig for testing. The optional map argument `options` may
   contain a map, which, if present, will be merged into the final JRubyPuppetConfig
   map.  (This function differs from `jruby-puppet-tk-config` in

  to string.  For each JRuby instance in the pool, f will be called, passing in
  an integer offset into the jruby array (0..size), and f is expected to return
  a string containing a script to run against the jruby instance.
  Returns a vector containing the results of executing the scripts against the
  JRuby instances."
  [pool-context size f]

   config :- jruby-schemas/JRubyConfig
   flush-instance-fn :- IFn]
  (let [instance (jruby-schemas/map->JRubyInstance
                  {:id id
                   :internal {:pool pool
                              :max-borrows (:max-borrows-per-instance config)
                              :flush-instance-fn flush-instance-fn
                              :state (atom {:borrow-count 0})}
                   :scripting-container (ScriptingContainer.
                                         LocalContextScope/SINGLETHREAD)})
        modified-instance (merge instance {:jruby-puppet (mock-jruby-instance-creator-fn)
                                           :environment-registry (puppet-env/environment-registry)})]
    (.register pool modified-instance)
