Skip to content

Commit

Permalink
Drop to 200kb
Browse files Browse the repository at this point in the history
  • Loading branch information
szabado-faire committed Apr 2, 2024
1 parent 8edaa77 commit f1fa4e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import app.cash.tempest2.musiclibrary.testDb
import app.cash.tempest2.testing.asyncLogicalDb
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.extension.RegisterExtension
import java.time.Duration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ class LogicalDbBatchTest {

@Test
fun `batchLoad more than 16MB`() = runBlockingTest {
val threeHundredKbDescription = "a".repeat(300_000)
val twoHundredKbDescription = "a".repeat(200_000)

// Generate ~30MB of data. Dynamo only supports reading 16MB per batch request, so we need to handled retries to
// Generate ~20MB of data. Dynamo only supports reading 16MB per batch request, so we need to handled retries to
// get the second page of data
val albumTracks = (1 until (MAX_BATCH_READ)).map {
AlbumTrack(
"ALBUM_1",
it.toLong(),
"track $it",
Duration.parse("PT3M28S"),
threeHundredKbDescription,
twoHundredKbDescription,
)
}
for (albumTrack in albumTracks) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import org.junit.jupiter.api.extension.RegisterExtension
import software.amazon.awssdk.enhanced.dynamodb.Expression
import software.amazon.awssdk.services.dynamodb.model.AttributeValue
import software.amazon.awssdk.services.dynamodb.model.TransactionCanceledException
import java.util.function.BiFunction
import kotlin.streams.toList

class WritingPagerTest {

Expand Down

0 comments on commit f1fa4e2

Please sign in to comment.