Skip to content

Commit 13a5649

Browse files
auto commit
1 parent ad60db0 commit 13a5649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
922922
} else if attributeToDelete in records[i].item && records[i].item[attributeToDelete].S? && records[i].item[attributeToDelete].S == expectedAttributeValue {
923923
expect deleteResult.Success?, "DeleteItem should have succeeded.";
924924
expect deleteResult.value.Attributes.Some?, "DeleteItemOutput should have had some attribute because ReturnValues was set as `ALL_OLD` in DeleteItemInput";
925-
expect deleteResult.value.Attributes.value == records[i].item, "Wrong item was deleted.";
925+
expect deleteResult.value.Attributes.value[HashName] == records[i].item[HashName], "Wrong item was deleted.";
926926
} else {
927927
expect deleteResult.Failure?, "DeleteItem should have failed.";
928928
expect deleteResult.error.ConditionalCheckFailedException?, "DeleteItem should have failed with ConditionalCheckFailedException";
@@ -945,7 +945,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
945945
expect deleteResultForWithoutConditionExpressionCase.Success?, "DeleteItem should have failed.";
946946
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.Some?, "DeleteItemOutput should have had some attribute because ReturnValues was set as `ALL_OLD` in DeleteItemInput";
947947
if attributeToDelete in records[i].item {
948-
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.value == records[i].item, "Wrong item was deleted.";
948+
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.value[HashName] == records[i].item[HashName], "Wrong item was deleted.";
949949
}
950950
}
951951
}

0 commit comments

Comments
 (0)