Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
th7nder committed Dec 10, 2024
1 parent 0113d19 commit 4b584dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pallets/storage-provider/src/tests/deadline.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::deadline::DeadlineInfo;


fn default_deadline() -> DeadlineInfo<u64> {
let block_number = 112;
let period_start = 100;
Expand All @@ -19,8 +18,9 @@ fn default_deadline() -> DeadlineInfo<u64> {
proving_period,
challenge_window,
challenge_lookback,
cutoff
).unwrap()
cutoff,
)
.unwrap()
}

#[test]
Expand Down Expand Up @@ -58,4 +58,4 @@ fn calculates_next_deadline_when_its_2_proving_periods_behind() {

assert_eq!(next.open_at, 220);
assert_eq!(next.close_at, 240);
}
}
2 changes: 1 addition & 1 deletion pallets/storage-provider/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ use crate::{
sector::SectorPreCommitInfo,
};

mod deadline;
mod declare_faults;
mod declare_faults_recovered;
mod deadline;
mod expiration_queue;
mod post_hook;
mod pre_commit_sector_hook;
Expand Down

0 comments on commit 4b584dd

Please sign in to comment.