diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-05 17:17:39 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-07-05 17:17:39 +0000 |
commit | eff8d6ef0312b7f26e35b103e0dff9b148f54bd5 (patch) | |
tree | 62055027780d2f6f8a514f19553ecf8cd91ab250 /test/client/master.rb | |
parent | 6b281eda564c4108f1955deb724e8beebb1e39cb (diff) | |
download | puppet-eff8d6ef0312b7f26e35b103e0dff9b148f54bd5.tar.gz puppet-eff8d6ef0312b7f26e35b103e0dff9b148f54bd5.tar.xz puppet-eff8d6ef0312b7f26e35b103e0dff9b148f54bd5.zip |
Accepting the patch from #190.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1368 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/client/master.rb')
-rw-r--r-- | test/client/master.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/client/master.rb b/test/client/master.rb index 7e447b095..89873791d 100644 --- a/test/client/master.rb +++ b/test/client/master.rb @@ -98,8 +98,8 @@ class TestMasterClient < Test::Unit::TestCase assert_nothing_raised do client.lock do pid = nil - assert(pid = client.locked?, "Client is not locked") - assert(pid =~ /^\d+$/, "PID is, um, not a pid") + assert(client.locked?, "Client is not locked") + assert(client.lockpid.is_a?(Integer), "PID #{client.lockpid} is, um, not a pid") end end assert(! client.locked?) @@ -118,24 +118,20 @@ class TestMasterClient < Test::Unit::TestCase # Make sure non-string facts don't make things go kablooie def test_nonstring_facts - Puppet.err :a # Add a nonstring fact Facter.add("nonstring") do setcode { 1 } end - Puppet.err :b assert_equal(1, Facter.nonstring, "Fact was a string from facter") client = mkclient() assert(! FileTest.exists?(@createdfile)) - Puppet.err :c assert_nothing_raised { client.run } - Puppet.err :d end def test_getplugins |