summaryrefslogtreecommitdiffstats
path: root/ext/puppet-test
diff options
context:
space:
mode:
Diffstat (limited to 'ext/puppet-test')
-rwxr-xr-xext/puppet-test3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/puppet-test b/ext/puppet-test
index 117a5a11a..dc0aeca92 100755
--- a/ext/puppet-test
+++ b/ext/puppet-test
@@ -216,10 +216,11 @@ end
Suite.new :local_catalog, "Local catalog handling" do
def prepare
+ @node = Puppet::Node.find(Puppet[:certname])
end
newtest :compile, "Compiled catalog" do
- Puppet::Node::Catalog.find(Puppet[:certname])
+ Puppet::Node::Catalog.find(@node)
end
end