From f15c32569ffa0be784a8ad7a9f2346981208baf1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 2 May 2015 11:07:22 +0200 Subject: [PATCH] Improved timing (if ci is under load and tests take more time). --- test/unit/session_basic_ticket_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/session_basic_ticket_test.rb b/test/unit/session_basic_ticket_test.rb index 4ba1cf6df..7c0385f65 100644 --- a/test/unit/session_basic_ticket_test.rb +++ b/test/unit/session_basic_ticket_test.rb @@ -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