aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2013-03-09 17:48:48 +0000
committerJon Leighton <j@jonathanleighton.com>2013-03-09 17:52:32 +0000
commit72be5bb5573310e9b05f3f46b1e48b927a1f00d4 (patch)
tree6086b22971960d5c7f5d1cf548bc97c39e25d30d /railties/test
parentc614b76499cbc802fa40a241380361deeba7b1b3 (diff)
downloadrails-72be5bb5573310e9b05f3f46b1e48b927a1f00d4.tar.gz
rails-72be5bb5573310e9b05f3f46b1e48b927a1f00d4.tar.bz2
rails-72be5bb5573310e9b05f3f46b1e48b927a1f00d4.zip
Bump up timeouts
This should fix travis. Also ensuring that we don't try to kill when pid is nil.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/console_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/console_test.rb b/railties/test/application/console_test.rb
index 592bd73924..f4450c8a3c 100644
--- a/railties/test/application/console_test.rb
+++ b/railties/test/application/console_test.rb
@@ -106,7 +106,7 @@ class FullStackConsoleTest < ActiveSupport::TestCase
teardown_app
end
- def assert_output(expected, timeout = 0.2)
+ def assert_output(expected, timeout = 5)
timeout = Time.now + timeout
output = ""
@@ -138,7 +138,7 @@ class FullStackConsoleTest < ActiveSupport::TestCase
in: @slave, out: @slave, err: @slave
)
- assert_output "> ", 5
+ assert_output "> ", 30
pid
end
@@ -157,6 +157,6 @@ class FullStackConsoleTest < ActiveSupport::TestCase
write_prompt "Post.transaction { Post.create; raise }"
write_prompt "Post.count", "=> 0"
ensure
- kill pid
+ kill pid if pid
end
end