Skip to content

Commit

Permalink
chore: Scale concurrent integration tests from 100x to 20x
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Sep 26, 2024
1 parent 9268b5e commit a2644e0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class S3ConcurrentTests: S3XCTestCase {
let MEGABYTE: Double = 1_000_000

// Payload below 1,048,576 bytes; sends as simple data payload
func test_100x_1MB_getObject() async throws {
func test_20x_1MB_getObject() async throws {
fileData = try generateDummyTextData(numMegabytes: MEGABYTE)
try await repeatConcurrentlyWithArgs(count: 100, test: getObject, args: fileData!)
try await repeatConcurrentlyWithArgs(count: 20, test: getObject, args: fileData!)
}

// Payload over 1,048,576 bytes; uses aws chunked encoding & flexible checksum
func test_100x_1_5MB_getObject() async throws {
func test_20x_1_5MB_getObject() async throws {
fileData = try generateDummyTextData(numMegabytes: MEGABYTE * 1.5)
try await repeatConcurrentlyWithArgs(count: 100, test: getObject, args: fileData!)
try await repeatConcurrentlyWithArgs(count: 20, test: getObject, args: fileData!)
}

/* Helper functions */
Expand Down

0 comments on commit a2644e0

Please sign in to comment.