Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Sep 11, 2024
1 parent 513bdb4 commit 2ddd228
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/storage/src/hummock/event_handler/uploader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,8 @@ pub(crate) mod tests {
let new_pinned_version = uploader
.context
.pinned_version
.new_pin_version(test_hummock_version(epoch1)).unwrap();
.new_pin_version(test_hummock_version(epoch1))
.unwrap();
uploader.update_pinned_version(new_pinned_version);
assert_eq!(epoch1, uploader.max_committed_epoch());
}
Expand Down Expand Up @@ -1672,7 +1673,8 @@ pub(crate) mod tests {
let new_pinned_version = uploader
.context
.pinned_version
.new_pin_version(test_hummock_version(epoch1)).unwrap();
.new_pin_version(test_hummock_version(epoch1))
.unwrap();
uploader.update_pinned_version(new_pinned_version);
assert!(uploader.data().syncing_data.is_empty());
assert_eq!(epoch1, uploader.max_committed_epoch());
Expand Down Expand Up @@ -1706,7 +1708,8 @@ pub(crate) mod tests {
let new_pinned_version = uploader
.context
.pinned_version
.new_pin_version(test_hummock_version(epoch1)).unwrap();
.new_pin_version(test_hummock_version(epoch1))
.unwrap();
uploader.update_pinned_version(new_pinned_version);
assert!(uploader.data().syncing_data.is_empty());
assert_eq!(epoch1, uploader.max_committed_epoch());
Expand All @@ -1730,11 +1733,21 @@ pub(crate) mod tests {
let epoch4 = epoch3.next_epoch();
let epoch5 = epoch4.next_epoch();
let epoch6 = epoch5.next_epoch();
let version1 = initial_pinned_version.new_pin_version(test_hummock_version(epoch1)).unwrap();
let version2 = initial_pinned_version.new_pin_version(test_hummock_version(epoch2)).unwrap();
let version3 = initial_pinned_version.new_pin_version(test_hummock_version(epoch3)).unwrap();
let version4 = initial_pinned_version.new_pin_version(test_hummock_version(epoch4)).unwrap();
let version5 = initial_pinned_version.new_pin_version(test_hummock_version(epoch5)).unwrap();
let version1 = initial_pinned_version
.new_pin_version(test_hummock_version(epoch1))
.unwrap();
let version2 = initial_pinned_version
.new_pin_version(test_hummock_version(epoch2))
.unwrap();
let version3 = initial_pinned_version
.new_pin_version(test_hummock_version(epoch3))
.unwrap();
let version4 = initial_pinned_version
.new_pin_version(test_hummock_version(epoch4))
.unwrap();
let version5 = initial_pinned_version
.new_pin_version(test_hummock_version(epoch5))
.unwrap();

uploader.start_epochs_for_test([epoch6]);
uploader.init_instance(TEST_LOCAL_INSTANCE_ID, TEST_TABLE_ID, epoch6);
Expand Down

0 comments on commit 2ddd228

Please sign in to comment.