Shorter timeout

This commit is contained in:
Alexandre Archambault
2015-06-18 18:52:28 +02:00
parent 830a81c651
commit 13cbbf6fbd
@@ -25,7 +25,7 @@ object Remote {
js.Dynamic.newInstance(xhr)().asInstanceOf[XMLHttpRequest]
def fetchTimeout(target: String, p: Promise[_]) =
setTimeout(10000) {
setTimeout(5000) {
if (!p.isCompleted) {
p.failure(new Exception(s"Timeout when fetching $target"))
}