Skip to content

Commit 2720d0c

Browse files
committed
Increased timeouts in thread tests to avoid test failures in CI.
1 parent c442d22 commit 2720d0c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_thread.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void do_test_creation()
6262

6363
BOOST_AUTO_TEST_CASE(test_creation)
6464
{
65-
timed_test(&do_test_creation, 1);
65+
timed_test(&do_test_creation, 2);
6666
}
6767

6868
void do_test_id_comparison()
@@ -74,7 +74,7 @@ void do_test_id_comparison()
7474

7575
BOOST_AUTO_TEST_CASE(test_id_comparison)
7676
{
77-
timed_test(&do_test_id_comparison, 1);
77+
timed_test(&do_test_id_comparison, 2);
7878
}
7979

8080
void interruption_point_thread(boost::mutex* m,bool* failed)
@@ -98,7 +98,7 @@ void do_test_thread_interrupts_at_interruption_point()
9898

9999
BOOST_AUTO_TEST_CASE(test_thread_interrupts_at_interruption_point)
100100
{
101-
timed_test(&do_test_thread_interrupts_at_interruption_point, 1);
101+
timed_test(&do_test_thread_interrupts_at_interruption_point, 2);
102102
}
103103

104104
void disabled_interruption_point_thread(boost::mutex* m,bool* failed)
@@ -123,7 +123,7 @@ void do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point()
123123

124124
BOOST_AUTO_TEST_CASE(test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point)
125125
{
126-
timed_test(&do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point, 1);
126+
timed_test(&do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point, 2);
127127
}
128128

129129
struct non_copyable_functor:

0 commit comments

Comments
 (0)