beanstalk_integration_tests 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -92,16 +92,6 @@ class StatsTest < BeanstalkIntegrationTest
|
|
92
92
|
end
|
93
93
|
|
94
94
|
|
95
|
-
should 'return correct pid' do
|
96
|
-
%x[which pgrep]
|
97
|
-
skip('pgrep is required to determine possible pids') unless $CHILD_STATUS.success?
|
98
|
-
pids = %x[pgrep -f beanstalk].split
|
99
|
-
|
100
|
-
stats = client.transmit('stats')[:body]
|
101
|
-
assert(pids.include?(stats['pid'].to_s), 'Expected pids for processes with beanstalk in title to include beanstalk pid')
|
102
|
-
end
|
103
|
-
|
104
|
-
|
105
95
|
should 'return correct count of current-connections and total-connections' do
|
106
96
|
stats = client.transmit('stats')[:body]
|
107
97
|
initial_current_connections = stats['current-connections']
|