Skip to content

Commit ac08646

Browse files
author
Devdutt Shenoi
committed
test: fix broken tests
1 parent 6a19a1e commit ac08646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/event/format/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,15 @@ mod tests {
333333

334334
#[test]
335335
fn time_parition_not_in_json() {
336-
let json = json!({"timestamp": "2025-05-15T15:30:00Z"});
336+
let json = json!({"hello": "world!"});
337337
let parsed = get_parsed_timestamp(&json, "timestamp");
338338

339339
assert!(parsed.is_err());
340340
}
341341

342342
#[test]
343343
fn time_parition_not_parseable_as_datetime() {
344-
let json = json!({"timestamp": "2025-05-15T15:30:00Z"});
344+
let json = json!({"timestamp": "not time"});
345345
let parsed = get_parsed_timestamp(&json, "timestamp");
346346

347347
assert!(parsed.is_err());

0 commit comments

Comments
 (0)