summaryrefslogtreecommitdiff
path: root/test/support/integration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/integration_test.rb')
-rw-r--r--test/support/integration_test.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/support/integration_test.rb b/test/support/integration_test.rb
index 117fc3f..552b0a1 100644
--- a/test/support/integration_test.rb
+++ b/test/support/integration_test.rb
@@ -48,35 +48,5 @@ module Tapicero
assert false, "Database #{db} should exist."
end
- def assert_tapicero_running
- return if $tapicero_running
- pid_file = '/tmp/tapicero.pid'
- unless File.exists?(pid_file)
- puts 'Tapicero must be running. Run `bin/tapicero run -- test/config.yaml`'
- exit(1)
- end
- pid = File.read(pid_file).strip
- if pid !~ /^\d+/
- puts "Bad #{pid_file}: Remove the file and try again.";
- exit(1)
- else
- pid = pid.to_i
- end
- begin
- Process.kill(0, pid)
- puts "OK, tapicero is running with process id #{pid}."
- $tapicero_running = true
- rescue Errno::EPERM
- puts "Failed to test tapicero pid: No permission to query #{pid}!"
- exit(1)
- rescue Errno::ESRCH
- puts "Bad #{pid_file}: #{pid} is NOT running. Remove the file and try again.";
- exit(1)
- rescue
- puts "Unable to determine status for tapicero process #{pid} : #{$!}"
- exit(1)
- end
- end
-
end
end