aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/runtest/executor_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-07-11 15:21:14 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-07-11 14:06:11 +0000
commitb6d5ea79ef2cf0e6a36f4c5b64b0c5b4e9b921fd (patch)
treea38641ddd354cb719ce138e7b13be95029349ecf /pkg/runtest/executor_test.go
parentb3f41ffa84f43572b0a8652f8017f9d53996f042 (diff)
pkg/runtest: reduce the number of executors
On 32 core machines, we spin up 32 executor procs per each subtest. In many cases, we don't need that many.
Diffstat (limited to 'pkg/runtest/executor_test.go')
-rw-r--r--pkg/runtest/executor_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/runtest/executor_test.go b/pkg/runtest/executor_test.go
index 72889669d..db84da275 100644
--- a/pkg/runtest/executor_test.go
+++ b/pkg/runtest/executor_test.go
@@ -61,7 +61,7 @@ func TestZlib(t *testing.T) {
}
executor := csource.BuildExecutor(t, target, "../..")
source := queue.Plain()
- startRPCServer(t, target, executor, "", source, nil, nil, nil)
+ startRPCServer(t, target, executor, source, rpcParams{manyProcs: true})
r := rand.New(testutil.RandSource(t))
for i := 0; i < 10; i++ {
data := testutil.RandMountImage(r)
@@ -111,7 +111,7 @@ func TestExecutorCommonExt(t *testing.T) {
t.Fatal(err)
}
source := queue.Plain()
- startRPCServer(t, target, executor, "", source, nil, nil, nil)
+ startRPCServer(t, target, executor, source, rpcParams{})
req := &queue.Request{
Prog: p,
ReturnError: true,