Skip to content

Commit

Permalink
test(lib-dynamodb): use consistent read in e2e tests (#5352)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 12, 2023
1 parent 9d462ed commit fc15e05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/lib-dynamodb/src/test/lib-dynamodb.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ describe(DynamoDBDocument.name, () => {

log.read[id] = await doc
.get({
ConsistentRead: true,
TableName,
Key: {
id,
Expand Down Expand Up @@ -272,6 +273,7 @@ describe(DynamoDBDocument.name, () => {
for (const [k] of Object.entries(data)) {
log.executeTransactionReadBack[k] = await doc
.get({
ConsistentRead: true,
TableName,
Key: {
id: k + "-exec-transact",
Expand All @@ -291,6 +293,7 @@ describe(DynamoDBDocument.name, () => {
for (const [k] of Object.entries(data)) {
log.executeStatementReadBack[k] = await doc
.get({
ConsistentRead: true,
TableName,
Key: {
id: k + "-statement",
Expand Down Expand Up @@ -347,6 +350,7 @@ describe(DynamoDBDocument.name, () => {
":data1": data.list,
":data2": data.map,
},
ConsistentRead: true,
})
.catch(passError);

Expand All @@ -368,6 +372,7 @@ describe(DynamoDBDocument.name, () => {

log.updateReadBack[id] = await doc
.get({
ConsistentRead: true,
TableName,
Key: {
id,
Expand Down

0 comments on commit fc15e05

Please sign in to comment.