Skip to content

Commit

Permalink
Merge pull request #2236 from tempesta-tech/MekhanikEvgenii/fix-2222
Browse files Browse the repository at this point in the history
Fix long work test on big server
  • Loading branch information
krizhanovsky authored Sep 19, 2024
2 parents 4725379 + 3f586a1 commit a8e2a46
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fw/t/unit/test_wq.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,15 @@ TEST(wq, one_prod_one_con)

TEST(wq, many_prod_one_con)
{
tfw_test_wq_test(JOB_N * num_online_cpus(), 1);
/*
* If num_online_cpus is a big value test works for a long
* time (about 30 minutes if num_online_cpus == 112 for
* example).
*/
size_t n = num_online_cpus() < 32
? JOB_N * num_online_cpus()
: num_online_cpus();
tfw_test_wq_test(n, 1);
}

TEST_SUITE(wq)
Expand Down

0 comments on commit a8e2a46

Please sign in to comment.