Skip to content

Commit

Permalink
Merge pull request #1
Browse files Browse the repository at this point in the history
feat: fix typo,adjust  test code
  • Loading branch information
flaymes authored Jul 4, 2024
2 parents d82b30b + 3b56a76 commit 82f3f8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ public void testAddManyEntries() {
assertEquals(0, this.logStorage.getFirstLogIndex());
assertEquals(9, this.logStorage.getLastLogIndex());
for (int i = 0; i < 10; i++) {
assertEquals(i, this.logStorage.getTerm(i));
final LogEntry entry = this.logStorage.getEntry(i);
assertNotNull(entry);
assertEquals(entries.get(i), entry);
final LogEntry logEntry = this.logStorage.getEntry(i);
assertNotNull(logEntry);
assertEquals(entries.get(i), logEntry);
assertEquals(i, logEntry.getId().getTerm());
}
}

Expand Down Expand Up @@ -187,7 +187,7 @@ public void testTruncatePrefix() throws Exception {
}

@Test
public void testAppendMantyLargeEntries() {
public void testAppendManyLargeEntries() {
final long start = Utils.monotonicMs();
final int totalLogs = 100000;
final int logSize = 16 * 1024;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void run(final Status status) {
}

@Test
public void testAppendEntresConflicts() throws Exception {
public void testAppendEntriesConflicts() throws Exception {
//Append 0-10
List<LogEntry> mockEntries = TestUtils.mockEntries(10);
for (int i = 0; i < 10; i++) {
Expand Down

0 comments on commit 82f3f8b

Please sign in to comment.