summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-02-04 11:09:02 +0100
committerAzul <azul@riseup.net>2014-02-04 11:46:57 +0100
commit630c38a0bcf4ca39ede98d354d8d43e6f735317c (patch)
treeef39bb4c054bcea95b16334b97c6c0ec9f7069ca /test/support
parent2836e9453618d9cc7dc64cb99651c4e5a40fb11c (diff)
include sleep in the create_user part of the tests
the changes feed and tapicero take some time to process the new user. Let's prevent timing issues by sleeping a second.
Diffstat (limited to 'test/support')
-rw-r--r--test/support/integration_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/support/integration_test.rb b/test/support/integration_test.rb
index 58469b9..44f0546 100644
--- a/test/support/integration_test.rb
+++ b/test/support/integration_test.rb
@@ -4,6 +4,7 @@ module Tapicero
def create_user
result = database.save_doc :some => :content
raise RuntimeError.new(result.inspect) unless result['ok']
+ sleep 1 # allow tapicero to do its job
@user_id = result['id']
end