From 6c512cbfa90c913fe9da85f67976959721f22bcf Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 6 Aug 2011 19:22:09 -0700 Subject: [PATCH] Chubbies is now a little TOO good at shutting itself off. Also: processes are hard. >.< --- features/step_definitions/oauth_steps.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/features/step_definitions/oauth_steps.rb b/features/step_definitions/oauth_steps.rb index cfac7dd0b..a6ebdbdbc 100644 --- a/features/step_definitions/oauth_steps.rb +++ b/features/step_definitions/oauth_steps.rb @@ -3,7 +3,7 @@ Given /^Chubbies is running$/ do end Given /^Chubbies has been killed$/ do - Chubbies.ensure_killed + Chubbies.kill end Given /^Chubbies is registered on my pod$/ do @@ -80,10 +80,6 @@ class Chubbies `kill -9 #{pid}` if pid.present? end - def self.ensure_killed - self.kill if self.running? - end - def self.running? begin begin @@ -91,7 +87,7 @@ class Chubbies rescue RestClient::ResourceNotFound end true - rescue Errno::ECONNREFUSED + rescue Errno::ECONNREFUSED, Errno::ECONNRESET false end end