Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00be6932 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "binderRpcTest: undo ThreadPoolLimit optimization"

parents 49d9f266 73aa6f88
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -464,7 +464,9 @@ TEST_P(BinderRpc, ThreadPoolOverSaturated) {
    constexpr size_t kNumThreads = 10;
    constexpr size_t kNumThreads = 10;
    constexpr size_t kNumCalls = kNumThreads + 3;
    constexpr size_t kNumCalls = kNumThreads + 3;
    auto proc = createRpcTestSocketServerProcess({.numThreads = kNumThreads});
    auto proc = createRpcTestSocketServerProcess({.numThreads = kNumThreads});
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 250 /*ms*/);

    // b/272429574 - below 500ms, the test fails
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 500 /*ms*/);
}
}


TEST_P(BinderRpc, ThreadPoolLimitOutgoing) {
TEST_P(BinderRpc, ThreadPoolLimitOutgoing) {
@@ -477,7 +479,9 @@ TEST_P(BinderRpc, ThreadPoolLimitOutgoing) {
    constexpr size_t kNumCalls = kNumOutgoingConnections + 3;
    constexpr size_t kNumCalls = kNumOutgoingConnections + 3;
    auto proc = createRpcTestSocketServerProcess(
    auto proc = createRpcTestSocketServerProcess(
            {.numThreads = kNumThreads, .numOutgoingConnections = kNumOutgoingConnections});
            {.numThreads = kNumThreads, .numOutgoingConnections = kNumOutgoingConnections});
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 250 /*ms*/);

    // b/272429574 - below 500ms, the test fails
    testThreadPoolOverSaturated(proc.rootIface, kNumCalls, 500 /*ms*/);
}
}


TEST_P(BinderRpc, ThreadingStressTest) {
TEST_P(BinderRpc, ThreadingStressTest) {