Improved tests.

This commit is contained in:
Martin Edenhofer 2015-04-06 01:43:19 +02:00
parent 698c1a34ea
commit 8a445fc8ef

View file

@ -55,6 +55,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:updated_by_id => 1, :updated_by_id => 1,
:created_by_id => 1, :created_by_id => 1,
) )
sleep 1
customer2 = User.create_or_update( customer2 = User.create_or_update(
:login => 'es-customer2@example.com', :login => 'es-customer2@example.com',
:firstname => 'ES', :firstname => 'ES',
@ -67,6 +68,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
:updated_by_id => 1, :updated_by_id => 1,
:created_by_id => 1, :created_by_id => 1,
) )
sleep 1
customer3 = User.create_or_update( customer3 = User.create_or_update(
:login => 'es-customer3@example.com', :login => 'es-customer3@example.com',
:firstname => 'ES', :firstname => 'ES',
@ -164,7 +166,7 @@ class ElasticsearchTest < ActiveSupport::TestCase
) )
ticket3.search_index_update_backend ticket3.search_index_update_backend
sleep 4 sleep 6
# search as agent # search as agent