Skip to content

Commit

Permalink
Use two workers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jul 18, 2023
1 parent bbdb3d2 commit ec6446c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beacon_node/http_api/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ pub async fn create_api_server_on_port<T: BeaconChainTypes>(
BeaconProcessor {
network_globals: network_globals.clone(),
executor: test_runtime.task_executor.clone(),
max_workers: 1, // Single-threaded beacon processor.
// The number of workers must be greater than one. Tests which use the
// builder workflow sometimes require an internal HTTP request in order
// to fulfill an already in-flight HTTP request, therefore having only
// one worker will result in a deadlock.
max_workers: 2,
current_workers: 0,
config: beacon_processor_config,
log: log.clone(),
Expand Down

0 comments on commit ec6446c

Please sign in to comment.