lib/nsicloudooo/fake_server.rb in nsicloudooo-0.3.0 vs lib/nsicloudooo/fake_server.rb in nsicloudooo-0.3.1
- old
+ new
@@ -18,9 +18,11 @@
callback = incoming["callback"] || nil
verb = incoming["verb"] || nil
if filename.include? "secs"
seconds = filename.split(".")[0].delete("secs").to_i
sleep seconds-1
+ elsif filename.include? "queue error"
+ return 503
end
{
doc_key: "key for document #{filename}",
callback: callback,
verb: verb,