Skip to content

Commit aa4dfcd

Browse files
committed
Fix debug test
1 parent 80d666d commit aa4dfcd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

governor/src/clock/quanta.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,9 @@ mod test {
149149
// Test the Clone implementation
150150
let c_clone = n.clone();
151151
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-
152+
assert_eq!(now, now_clone);
160153
// Check that the debug string is not empty
154+
let debug_str = format!("{:?}", c_clone);
161155
assert!(!debug_str.is_empty());
162156
}
163157
}

0 commit comments

Comments
 (0)