mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
Use the public managed-features constructor in the guardian config test (#59217)
Update the reviewer configuration test to call `ManagedFeatures::from_configured_with_warnings` and pass `parent_config.startup_warnings`, avoiding the crate-private `from_configured` constructor. GitOrigin-RevId: 2ba41ba6918e1007b3af013b7146940d919e4560
This commit is contained in:
@@ -14,7 +14,7 @@ use std::collections::BTreeMap;
|
||||
async fn guardian_review_session_config_allows_pinned_disabled_feature() {
|
||||
let home = tempfile::tempdir().expect("create temp dir");
|
||||
let mut parent_config = core_test_support::load_default_config_for_test(&home).await;
|
||||
parent_config.features = ManagedFeatures::from_configured(
|
||||
parent_config.features = ManagedFeatures::from_configured_with_warnings(
|
||||
parent_config.features.get().clone(),
|
||||
Some(Sourced {
|
||||
value: FeatureRequirementsToml {
|
||||
@@ -22,6 +22,7 @@ async fn guardian_review_session_config_allows_pinned_disabled_feature() {
|
||||
},
|
||||
source: RequirementSource::Unknown,
|
||||
}),
|
||||
&mut parent_config.startup_warnings,
|
||||
)
|
||||
.expect("managed features");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user