Improved timing (if ci is under load and tests take more time).

This commit is contained in:
Martin Edenhofer 2015-05-02 11:07:22 +02:00
parent 82b18b5dea
commit f15c32569f

View file

@ -25,7 +25,7 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
assert( agent1.save, 'create/update agent1' )
user = User.lookup( id: agent1.id )
client1 = Sessions::Backend::TicketOverviewIndex.new(user, false, '123-1', 3)
client1 = Sessions::Backend::TicketOverviewIndex.new(user, false, '123-1', 5)
# get as stream
result1 = client1.push
@ -36,13 +36,13 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
assert( !result1, 'check ticket_overview_index - recall' )
# next check should be empty / no changes
sleep 4
sleep 6
result1 = client1.push
assert( !result1, 'check ticket_overview_index - recall 2' )
# create ticket
ticket = Ticket.create( title: '12323', group_id: 1, priority_id: 1, state_id: 1, customer_id: 1 )
sleep 4
sleep 6
# get as stream
result1 = client1.push
@ -72,7 +72,7 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
user = User.lookup( id: agent1.id )
client1 = Sessions::Backend::TicketOverviewList.new(user, false, '123-1', 3)
client1 = Sessions::Backend::TicketOverviewList.new(user, false, '123-1', 5)
# get as stream
result1 = client1.push
@ -83,13 +83,13 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
assert( !result1, 'check ticket_overview_list - recall' )
# next check should be empty / no changes
sleep 4
sleep 6
result1 = client1.push
assert( !result1, 'check ticket_overview_list - recall 2' )
# create ticket
ticket = Ticket.create( title: '12323', group_id: 1, priority_id: 1, state_id: 1, customer_id: 1 )
sleep 4
sleep 6
# get as stream
result1 = client1.push