summaryrefslogtreecommitdiffstats
path: root/test/server
diff options
context:
space:
mode:
Diffstat (limited to 'test/server')
-rw-r--r--test/server/master.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/server/master.rb b/test/server/master.rb
index e3f065087..18e23311c 100644
--- a/test/server/master.rb
+++ b/test/server/master.rb
@@ -102,6 +102,8 @@ class TestMaster < Test::Unit::TestCase
end
def test_filereread
+ # Start with a normal setting
+ Puppet[:filetimeout] = 15
manifest = mktestmanifest()
file2 = @createdfile + "2"
@@ -113,8 +115,7 @@ class TestMaster < Test::Unit::TestCase
master = Puppet::Server::Master.new(
:Manifest => manifest,
:UseNodes => false,
- :Local => true,
- :FileTimeout => 15
+ :Local => true
)
}
assert_nothing_raised() {
@@ -153,10 +154,8 @@ class TestMaster < Test::Unit::TestCase
assert_equal(parse1, master.freshness, "Master did not wait through timeout")
assert(client.fresh?, "Client is not up to date")
- assert_nothing_raised("Could not resent the file timeout") {
- master.filetimeout = 0
- }
- assert_equal(0, master.filetimeout)
+ # Then eliminate it
+ Puppet[:filetimeout] = 0
# Now make sure the master does reparse
#Puppet.notice "%s vs %s" % [parse1, master.freshness]