mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Vary preview Bazel test failures
This commit is contained in:
@@ -568,6 +568,11 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_code_mode() {
|
||||
panic!("intentional preview failure: code-mode test log");
|
||||
let actual = "code-mode actual preview value";
|
||||
let expected = "code-mode expected preview value";
|
||||
assert_eq!(
|
||||
actual, expected,
|
||||
"intentional preview failure: code-mode assertion diff"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,5 +44,6 @@ fn deserialize_skill_config_with_path_selector() {
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_config() {
|
||||
panic!("intentional preview failure: config test log");
|
||||
eprintln!("intentional preview stderr: config before panic");
|
||||
panic!("intentional preview failure: config panic after stderr");
|
||||
}
|
||||
|
||||
@@ -68,8 +68,8 @@ fn test_invalid_bytes_still_fall_back_to_lossy() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_protocol() {
|
||||
panic!("intentional preview failure: protocol test log");
|
||||
fn preview_failed_log_from_protocol() -> Result<(), String> {
|
||||
Err("intentional preview failure: protocol returned Result::Err".to_string())
|
||||
}
|
||||
|
||||
fn decode_shell_output(bytes: &[u8]) -> String {
|
||||
|
||||
@@ -282,5 +282,9 @@ fn byte_count_conversion_clamps_non_positive_values() {
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_output_truncation() {
|
||||
panic!("intentional preview failure: output-truncation test log");
|
||||
let output = "output-truncation preview value";
|
||||
assert!(
|
||||
output.contains("truncated marker"),
|
||||
"intentional preview failure: output-truncation predicate assertion"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user