We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d666d commit aa4dfcdCopy full SHA for aa4dfcd
governor/src/clock/quanta.rs
@@ -149,15 +149,9 @@ mod test {
149
// Test the Clone implementation
150
let c_clone = n.clone();
151
let now_clone = c_clone.now();
152
- assert_eq!(now, now_clone); // This may not always be true if time has elapsed between calls
153
- }
154
-
155
- #[test]
156
- fn test_quanta_upkeep_clock_debug() {
157
- let clock = QuantaUpkeepClock::from_interval(Duration::from_secs(1)).unwrap();
158
- let debug_str = format!("{:?}", clock);
159
+ assert_eq!(now, now_clone);
160
// Check that the debug string is not empty
+ let debug_str = format!("{:?}", c_clone);
161
assert!(!debug_str.is_empty());
162
}
163
0 commit comments