mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
codex: fix CI failure on PR #15512
Use the synchronous test_config helper in the new beta header tests. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -147,7 +147,7 @@ fn assistant_message(text: &str) -> ResponseItem {
|
||||
|
||||
#[test]
|
||||
fn beta_features_header_disables_image_generation_when_feature_is_off() {
|
||||
let config = ConfigBuilder::default().build();
|
||||
let config = test_config();
|
||||
|
||||
assert_eq!(
|
||||
Session::build_model_client_beta_features_header(&config),
|
||||
@@ -157,7 +157,7 @@ fn beta_features_header_disables_image_generation_when_feature_is_off() {
|
||||
|
||||
#[test]
|
||||
fn beta_features_header_uses_image_generation_feature_key_when_enabled() {
|
||||
let mut config = ConfigBuilder::default().build();
|
||||
let mut config = test_config();
|
||||
config.features.enable(Feature::ImageGeneration);
|
||||
|
||||
let header = Session::build_model_client_beta_features_header(&config)
|
||||
|
||||
Reference in New Issue
Block a user