Skip to content

Commit 3b82c92

Browse files
committed
[skip ci] Fix
1 parent 59ae1f4 commit 3b82c92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/test/java/com/scalar/db/transaction/consensuscommit/SnapshotTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ public void toSerializable_ScanWithLimitInScanSet_ShouldProcessWithoutExceptions
16451645
snapshot.putIntoScanSet(
16461646
scan, Maps.newLinkedHashMap(ImmutableMap.of(key1, result1, key2, result2, key3, result3)));
16471647

1648-
// Simulate that the first and second records were updated by another transaction
1648+
// Simulate that the first and third records were updated by another transaction
16491649
Scanner scanner = mock(Scanner.class);
16501650
when(scanner.one()).thenReturn(Optional.of(result2)).thenReturn(Optional.empty());
16511651

@@ -1678,7 +1678,7 @@ public void toSerializable_ScanWithLimitInScanSet_ShouldProcessWithoutExceptions
16781678
snapshot.putIntoScanSet(
16791679
scan, Maps.newLinkedHashMap(ImmutableMap.of(key1, result1, key2, result2, key3, result3)));
16801680

1681-
// Simulate that the first and second records were updated by myself
1681+
// Simulate that the first and third records were updated by myself
16821682
snapshot.putIntoWriteSet(key1, preparePut(ANY_TEXT_1, ANY_TEXT_1));
16831683
snapshot.putIntoWriteSet(key3, preparePut(ANY_TEXT_3, ANY_TEXT_1));
16841684
Scanner scanner = mock(Scanner.class);
@@ -1712,7 +1712,7 @@ public void toSerializable_ScanWithLimitInScanSet_ShouldProcessWithoutExceptions
17121712
snapshot.putIntoScanSet(
17131713
scan, Maps.newLinkedHashMap(ImmutableMap.of(key1, result1, key2, result2, key3, result3)));
17141714

1715-
// Simulate that the first and second records were deleted by myself
1715+
// Simulate that the first and third records were deleted by myself
17161716
snapshot.putIntoDeleteSet(key1, prepareDelete(ANY_TEXT_1, ANY_TEXT_1));
17171717
snapshot.putIntoDeleteSet(key3, prepareDelete(ANY_TEXT_3, ANY_TEXT_1));
17181718
Scanner scanner = mock(Scanner.class);

0 commit comments

Comments
 (0)