mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-22 17:30:52 +02:00
refactor: cleanup and better brave release fetching
This commit is contained in:
@@ -41,7 +41,7 @@ impl Default for BackgroundUpdateState {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
last_update_time: 0,
|
||||
update_interval_hours: 3,
|
||||
update_interval_hours: 12,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -642,20 +642,6 @@ mod tests {
|
||||
assert!(timestamp2 >= timestamp1, "Timestamp should not decrease");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_background_update_state_default() {
|
||||
let state = BackgroundUpdateState::default();
|
||||
|
||||
assert_eq!(
|
||||
state.last_update_time, 0,
|
||||
"Default last update time should be 0"
|
||||
);
|
||||
assert_eq!(
|
||||
state.update_interval_hours, 3,
|
||||
"Default update interval should be 3 hours"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_version_updater_singleton() {
|
||||
let updater1 = get_version_updater();
|
||||
|
||||
Reference in New Issue
Block a user