Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get upload tests working
Browse files Browse the repository at this point in the history
MasterPtato committed Apr 16, 2024
1 parent 6e7449e commit e466f95
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions svc/pkg/upload/ops/prepare/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -124,13 +124,18 @@ async fn empty(ctx: TestCtx) {
}
}

// TODO: This test takes a long time to complete
#[worker_test]
async fn multipart(ctx: TestCtx) {
// TODO: This test takes a long time to complete (each part takes ~40 seconds to create)
return;

let mut rng = thread_rng();
// Create random parts
let mut parts = (0..3)
.map(|_| {
thread_rng()
.map(|i| {
tracing::info!("generating part {}", i + 1);

(&mut rng)
.sample_iter(&Alphanumeric)
.take(CHUNK_SIZE as usize)
.map(char::from)

0 comments on commit e466f95

Please sign in to comment.