summaryrefslogtreecommitdiffstats
path: root/test/network/handler/node.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-26 19:03:25 -0500
committerLuke Kanies <luke@madstop.com>2007-08-26 19:03:25 -0500
commit9ea8e6cc8772053548d3438393dd1ead986ed719 (patch)
treeff97f65095d4b5b516dd800dd6197638787cc4dd /test/network/handler/node.rb
parent51ff72c42447e5b9e05db3b24530a4e628454396 (diff)
downloadpuppet-9ea8e6cc8772053548d3438393dd1ead986ed719.tar.gz
puppet-9ea8e6cc8772053548d3438393dd1ead986ed719.tar.xz
puppet-9ea8e6cc8772053548d3438393dd1ead986ed719.zip
The fileserver now uses an environment-specific module path. I also made various bug fixes around the network tree.
Diffstat (limited to 'test/network/handler/node.rb')
-rwxr-xr-xtest/network/handler/node.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/network/handler/node.rb b/test/network/handler/node.rb
index d5c98fec6..f7cbf6017 100755
--- a/test/network/handler/node.rb
+++ b/test/network/handler/node.rb
@@ -336,6 +336,9 @@ class TestNodeHandler < Test::Unit::TestCase
end
assert_equal(node.object_id, handler.send(:cached?, "yay").object_id, "Did not get node back from the cache")
+ # And that it's returned if we ask for it, instead of creating a new node.
+ assert_equal(node.object_id, handler.details("yay").object_id, "Did not use cached node")
+
# Now set the node's time to be a long time ago
node.time = Time.now - 50000
assert(! handler.send(:cached?, "yay"), "Timed-out node was returned from cache")