 
 (defn set-constants-and-verify
   [pool-context num-instances]
-  ;; here we set a constant called 'InstanceId' in each instance
-  (jruby-testutils/reduce-over-jrubies! pool-context num-instances #(format "InstanceID = %s" %))
+  ;; here we set a variable called 'instance_id' in each instance
+  (jruby-testutils/reduce-over-jrubies!
+    pool-context
+    num-instances
+    #(format "$instance_id = %s" %))
   ;; and validate that we can read that value back from each instance
   (= (set (range num-instances))
-     (-> (jruby-testutils/reduce-over-jrubies! pool-context num-instances (constantly "InstanceID"))
+     (-> (jruby-testutils/reduce-over-jrubies!
+           pool-context
+           num-instances
+           (constantly "$instance_id"))
          set)))
 
 (defn constant-defined?

            [puppetlabs.services.puppet-admin.puppet-admin-service :as puppet-admin]
            [puppetlabs.services.jruby.jruby-puppet-core :as jruby-core]
            [puppetlabs.http.client.sync :as http-client]
            [me.raynes.fs :as fs]))

(def test-resources-dir
  "./dev-resources/puppetlabs/services/jruby/jruby_pool_int_test")

   :ssl-ca-cert ca-cert})

(def script-to-check-if-constant-is-defined
  "! $instance_id.nil?")

(defn add-watch-for-flush-complete
  [pool-context]
