Skip to content

Commit f38a975

Browse files
remove test
1 parent e75dd59 commit f38a975

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/utils/json/mod.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -480,40 +480,6 @@ mod tests {
480480
);
481481
}
482482

483-
#[test]
484-
fn test_convert_array_to_object_with_time_partition() {
485-
let json = json!([
486-
{
487-
"a": "b",
488-
"source_time": "2025-08-01T00:00:00.000Z"
489-
},
490-
{
491-
"a": "b",
492-
"source_time": "2025-08-01T00:01:00.000Z"
493-
}
494-
]);
495-
496-
let time_partition = Some("source_time".to_string());
497-
let result = convert_array_to_object(
498-
json,
499-
time_partition.as_ref(),
500-
None,
501-
None,
502-
SchemaVersion::V0,
503-
&crate::event::format::LogSource::default(),
504-
);
505-
506-
assert!(result.is_ok());
507-
let objects = result.unwrap();
508-
509-
// Should return 2 separate objects, not wrapped in an array
510-
assert_eq!(objects.len(), 2);
511-
assert_eq!(objects[0]["a"], "b");
512-
assert_eq!(objects[0]["source_time"], "2025-08-01T00:00:00.000Z");
513-
assert_eq!(objects[1]["a"], "b");
514-
assert_eq!(objects[1]["source_time"], "2025-08-01T00:01:00.000Z");
515-
}
516-
517483
#[test]
518484
fn test_convert_array_to_object_without_time_partition() {
519485
let json = json!([

0 commit comments

Comments
 (0)