mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-05 19:55:37 +00:00
test(tier): remove redundant intent clones
This commit is contained in:
@@ -1417,7 +1417,7 @@ mod tests {
|
||||
let initial_intent = tier_probe_intent_fixture();
|
||||
let initial = tier_probe_checkpoint(&initial_intent);
|
||||
|
||||
let mut uploaded_intent = initial_intent.clone();
|
||||
let mut uploaded_intent = initial_intent;
|
||||
uploaded_intent
|
||||
.advance(
|
||||
tier_probe_intent::TierProbeIntentState::Uploaded,
|
||||
|
||||
@@ -1001,7 +1001,7 @@ mod tests {
|
||||
))
|
||||
));
|
||||
|
||||
let mut terminal = initial.clone();
|
||||
let mut terminal = initial;
|
||||
terminal
|
||||
.advance(TierProbeIntentState::AbortedNoRemote, TierProbeRemoteVersion::default())
|
||||
.expect("missing candidate should terminalize");
|
||||
@@ -1045,7 +1045,7 @@ mod tests {
|
||||
if schema == "rustfs-tier-probe-intent-v999"
|
||||
));
|
||||
|
||||
let mut exact_limit = encoded.clone();
|
||||
let mut exact_limit = encoded;
|
||||
exact_limit.resize(MAX_TIER_PROBE_INTENT_SIZE, b' ');
|
||||
assert_eq!(exact_limit.len(), MAX_TIER_PROBE_INTENT_SIZE);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user