Skip to content

Commit a70976a

Browse files
committed
test(repo): Fix wrong tests
1 parent 0729afb commit a70976a

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

crates/types/src/primitives/block_timestamp.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -659,25 +659,4 @@ mod tests {
659659
let formatted = format!("{:?}", ts.0);
660660
assert!(!formatted.contains("789Z")); // Should not have nanosecond precision
661661
}
662-
663-
#[test]
664-
fn test_now_timestamp_precision() {
665-
let ts = BlockTimestamp::now();
666-
667-
// Get the string representation
668-
let formatted = format!("{:?}", ts.0);
669-
670-
// Count the decimal places after the dot and before Z
671-
let decimal_places = formatted
672-
.split('.')
673-
.nth(1)
674-
.map(|s| s.trim_end_matches('Z').len())
675-
.unwrap_or(0);
676-
677-
// Should have exactly 6 decimal places (microsecond precision)
678-
assert_eq!(
679-
decimal_places, 6,
680-
"Timestamp should have microsecond precision (6 decimal places)"
681-
);
682-
}
683662
}

0 commit comments

Comments
 (0)