From 8a445fc8ef86003b95f44400170f594868abb5ee Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 6 Apr 2015 01:43:19 +0200 Subject: [PATCH] Improved tests. --- test/integration/elasticsearch_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/elasticsearch_test.rb b/test/integration/elasticsearch_test.rb index c3b665c26..b67919e51 100644 --- a/test/integration/elasticsearch_test.rb +++ b/test/integration/elasticsearch_test.rb @@ -55,6 +55,7 @@ class ElasticsearchTest < ActiveSupport::TestCase :updated_by_id => 1, :created_by_id => 1, ) + sleep 1 customer2 = User.create_or_update( :login => 'es-customer2@example.com', :firstname => 'ES', @@ -67,6 +68,7 @@ class ElasticsearchTest < ActiveSupport::TestCase :updated_by_id => 1, :created_by_id => 1, ) + sleep 1 customer3 = User.create_or_update( :login => 'es-customer3@example.com', :firstname => 'ES', @@ -164,7 +166,7 @@ class ElasticsearchTest < ActiveSupport::TestCase ) ticket3.search_index_update_backend - sleep 4 + sleep 6 # search as agent