summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-10 16:40:57 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-10 16:40:57 -0400
commit0de5f0747905206cec88b47696ad178867ece286 (patch)
tree01a2929682c5bf145d271423a2ffdd778305917b
parentcccfc879a4e45f3dccecd99533d6dbeb9b2a53b2 (diff)
downloadupstate-0de5f0747905206cec88b47696ad178867ece286.tar.gz
upstate-0de5f0747905206cec88b47696ad178867ece286.tar.xz
upstate-0de5f0747905206cec88b47696ad178867ece286.zip
Use State#release to clear system between tests
If we simply call State.release for :system and :user everything dies :D
-rw-r--r--test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.rb b/test.rb
index 2baa3b0..f74b92a 100644
--- a/test.rb
+++ b/test.rb
@@ -31,7 +31,8 @@ class TC_State < Test::Unit::TestCase
end
def teardown
- State.get_all.clone.each{ |x| x.becomes_defunct }
+ State.release(:user)
+ State.release(:system)
end
def test_ignored_event