Skip to content

Commit

Permalink
tests: Disable high-priority threads in dynamic plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElectronWill committed Oct 6, 2024
1 parent 0dc6d47 commit b16fabb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test-dynamic-plugins/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ fn run_with_plugin(
// Check the config (print it here and assert_eq on the output in tests/test_plugins.rs)
println!("[app] plugin config: {:?}", plugin_config);

// Build and agent with the plugin
// Prepare for checks
let expected_plugin_name = expected_plugin_name.to_owned();
let expected_plugin_version = expected_plugin_version.to_owned();
let mut agent_builder = agent::Builder::new(alumet::pipeline::Builder::new());

// Disable high-priority threads, they are useless for the dynamic plugin tests
// and don't work in CI.
let mut pipeline_builder = alumet::pipeline::Builder::new();
pipeline_builder.high_priority_threads(0);

// Build and agent with the plugin
let mut agent_builder = agent::Builder::new(pipeline_builder);
agent_builder.add_plugin_with_info(plugin, true, plugin_config);
agent_builder
.after_plugins_init(move |plugins| {
Expand Down

0 comments on commit b16fabb

Please sign in to comment.