Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Jan 4, 2025
1 parent 571ff23 commit c0f0ef1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions common/test/test_throttle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,33 @@ INSTANTIATE_TEST_P(Throttle, ThrottlePriorityTest, testing::Values(
{100'000'000, 4'000'000, photon::throttle::Priority::Low},
0.4, 0.6,
0.4, 0.6,
},
PriorityTestSuite{
// 8. Real socket. Low priority gets the rest BW that high priority doesn't need
PriorityTestSuite::RealSocket,
10'000'000,
{5'000'000, 10'000, photon::throttle::Priority::High},
{300'000'000, 8'000'000, photon::throttle::Priority::Low},
0.1, 0.9,
0.1, 0.9,
},
PriorityTestSuite{
// 9. Real socket. Low priority gets the rest BW that high priority doesn't need
PriorityTestSuite::RealSocket,
10'000'000,
{5'000'000, 10'000, photon::throttle::Priority::High},
{5'000'000, 32'000, photon::throttle::Priority::Low},
0.1, 0.9,
0.1, 0.9,
},
PriorityTestSuite{
// 10. Real socket. Low priority gets the rest BW that high priority doesn't need
PriorityTestSuite::RealSocket,
500'000'000,
{400'000'000, 10'000, photon::throttle::Priority::High},
{400'000'000, 32'000, photon::throttle::Priority::Low},
0.1, 0.9,
0.1, 0.9,
}
));

Expand Down

0 comments on commit c0f0ef1

Please sign in to comment.