summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-14 18:56:14 -0800
committerelijah <elijah@riseup.net>2014-12-14 18:56:14 -0800
commit97c460cd1133c18fd82a649253db755a38bea0ed (patch)
treee06e7c7faef7ce9e327f2b3031122bd47df5a241 /test
parent92db2c6e6210a860a4de4baf8033428fbe72b7cc (diff)
try to create the db many times until it exists
Diffstat (limited to 'test')
-rw-r--r--test/integration/actions_test.rb1
-rw-r--r--test/support/tapicero_process.rb2
-rw-r--r--test/test_helper.rb3
3 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/actions_test.rb b/test/integration/actions_test.rb
index f3d3faa..a975e0b 100644
--- a/test/integration/actions_test.rb
+++ b/test/integration/actions_test.rb
@@ -5,6 +5,7 @@ class ActionsTest < Tapicero::IntegrationTest
def setup
TapiceroProcess.run_with_config("test/config.yaml")
create_user
+ sleep 0.1
end
def teardown
diff --git a/test/support/tapicero_process.rb b/test/support/tapicero_process.rb
index fdfb37d..ab246dd 100644
--- a/test/support/tapicero_process.rb
+++ b/test/support/tapicero_process.rb
@@ -24,7 +24,7 @@ module TapiceroProcess
puts "bin/tapicero run -- '#{config_path}'"
exec "bin/tapicero run -- '#{config_path}'"
else
- exec "bin/tapicero run -- '#{config_path}' > /dev/null 2>&1"
+ exec "bin/tapicero run -- '#{config_path}' > /dev/null | grep -v ^tapicero:"
end
end
Process.detach(other_process)
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ec42f41..31eaa2b 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -33,3 +33,6 @@ MiniTest.after_run {
TapiceroProcess.kill!
}
+puts
+puts " REMINDER: check /tmp/tapicero.log for errors"
+puts \ No newline at end of file