Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add /timeout route to fake a long response for testing RKRequest's ti…

…meout interval. We need to leave this around 4 seconds so we don't hold up the ruby process too long and cause the tests launched after to fail.
  • Loading branch information...
commit 23858146fc4edb1cfe66a216d8a5a51c85659f17 1 parent b88bba9
Brian Morton bmorton authored blakewatters committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 Specs/Server/server.rb
9 Specs/Server/server.rb
View
@@ -123,6 +123,15 @@ class RestKit::SpecServer < Sinatra::Base
content_type 'application/json'
params.to_json
end
+
+ get '/timeout' do
+ # We need to leave this around 4 seconds so we don't hold up the
+ # process too long and cause the tests launched after to fail.
+ sleep 4
+ status 200
+ content_type 'application/json'
+ params.to_json
+ end
get '/empty/array' do
status 200
Please sign in to comment.
Something went wrong with that request. Please try again.