X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/22dbb0614da70ce16ec86d906ea222532b3b7c9f..ab874e9d6cd3313ce827dc4d4d574913575ad095:/apps/workbench/test/test_helper.rb diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb index c0d6ac86e7..e3654877af 100644 --- a/apps/workbench/test/test_helper.rb +++ b/apps/workbench/test/test_helper.rb @@ -128,8 +128,13 @@ class ApiServerForTests def find_server_pid pid = nil + @pidfile = if @websocket + WEBSOCKET_PID_PATH + else + SERVER_PID_PATH + end begin - pid = IO.read(if @websocket then WEBSOCKET_PID_PATH else SERVER_PID_PATH end).to_i + pid = IO.read(@pidfile).to_i $stderr.puts "API server is running, pid #{pid.inspect}" rescue Errno::ENOENT end