Skip to content

Commit 5bb7acd

Browse files
authored
fix stress tests. (#29845)
1 parent 205afd5 commit 5bb7acd

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

sdk/storage/azure-storage-perf/src/main/java/com/azure/storage/blob/perf/core/AbstractUploadTest.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,16 @@
44
package com.azure.storage.blob.perf.core;
55

66
import com.azure.storage.blob.perf.BlobPerfStressOptions;
7-
import reactor.core.publisher.Mono;
87

98
import java.util.UUID;
109

11-
import static com.azure.perf.test.core.TestDataCreationHelper.createRandomByteBufferFlux;
12-
1310
public abstract class AbstractUploadTest<TOptions extends BlobPerfStressOptions> extends BlobTestBase<TOptions> {
1411

12+
/**
13+
* This ctor makes sure that each upload tests targets different blob.
14+
* @param options options
15+
*/
1516
public AbstractUploadTest(TOptions options) {
1617
super(options, BLOB_NAME_PREFIX + UUID.randomUUID());
1718
}
18-
19-
@Override
20-
public Mono<Void> setupAsync() {
21-
// Upload one blob per test
22-
return super.setupAsync()
23-
.then(blobAsyncClient.upload(createRandomByteBufferFlux(options.getSize()), null))
24-
.then();
25-
}
2619
}

0 commit comments

Comments
 (0)