fixed fmt · Entire
fixed fmt
c3f9cc3→main·
Soph·2mo ago·1 file·+9 added/-9 removed
Changes
1
internal/strategy/bootstrap
Mbootstrap_test.go+9/-9
520 unmodified lines
521
522
523
524
525
526
524
525
526
527
528
529
530
531
532
533
534
532
533
534
535
536
537
11 unmodified lines
549
550
551
552
553
554
552
553
554
555
556
557
520 unmodified lines
{
// Header parsed, balanced pack, projection well under cap.
// 50 MiB sent for 25% of objects projects to 200 MiB total.
name: "projection under threshold proceeds",
bytesSent: 50 * 1024 * 1024,
objectsSent: 25, totalObjects: 100,
name: "projection under threshold proceeds",
bytesSent: 50 * 1024 * 1024,
objectsSent: 25, totalObjects: 100,
budget: cap500, want: false,
},
{
// Cloudflare-shaped front-loaded pack: 50 MiB sent and only
// 5% of objects done means projected ≈ 1 GiB > 95% of cap.
name: "front-loaded projection trips abort",
bytesSent: 50 * 1024 * 1024,
objectsSent: 5, totalObjects: 100,
name: "front-loaded projection trips abort",
bytesSent: 50 * 1024 * 1024,
objectsSent: 5, totalObjects: 100,
budget: cap500, want: true,
},
{
11 unmodified lines
{
// Late-stage projection: objectsSent has caught up with
// totalObjects so projection ≈ bytesSent. Must not flap.
name: "near-end matched ratio projects to current bytes",
bytesSent: 450 * 1024 * 1024,
objectsSent: 98, totalObjects: 100,
name: "near-end matched ratio projects to current bytes",
bytesSent: 450 * 1024 * 1024,
objectsSent: 98, totalObjects: 100,
budget: cap500, want: false,
},
}
Minternal/strategy/bootstrap/bootstrap_test.go+9/-9