lib/run_loop/xcuitest.rb in run_loop-2.1.4 vs lib/run_loop/xcuitest.rb in run_loop-2.1.5

- old
+ new

@@ -423,22 +423,27 @@ } end # @!visibility private def session_delete - options = ping_options - request = request("session") - client = client(options) - begin - response = client.delete(request) - body = expect_200_response(response) - RunLoop.log_debug("CBX-Runner says, #{body}") - body - rescue => e - RunLoop.log_debug("CBX-Runner session delete error: #{e}") - nil - end + # https://xamarin.atlassian.net/browse/TCFW-255 + # httpclient is unable to send a valid DELETE + args = ["curl", "-X", "DELETE", %Q[#{url}#{versioned_route("session")}]] + run_shell_command(args) + + # options = ping_options + # request = request("session") + # client = client(options) + # begin + # response = client.delete(request) + # body = expect_200_response(response) + # RunLoop.log_debug("CBX-Runner says, #{body}") + # body + # rescue => e + # RunLoop.log_debug("CBX-Runner session delete error: #{e}") + # nil + # end end # @!visibility private # TODO expect 200 response and parse body (atm the body in not valid JSON) def shutdown @@ -539,10 +544,10 @@ #{body} ] else raise RunLoop::XCUITest::HTTPError, - %Q[Expected JSON response with no error, but found +%Q[Expected JSON response with no error, but found #{body["error"]} ]