Skip to content

Commit 27820e8

Browse files
committed
Improved test coverage
1 parent 0606bce commit 27820e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DotNext.Tests/Net/Cluster/Consensus/Raft/MemoryBasedStateMachineTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ public static async Task EnsureMetadataPersistence()
10741074
await state.AppendAsync(entry);
10751075
}
10761076

1077+
await state.AppendAsync(new BinaryLogEntry<Blittable<int>> { Content = new() { Value = 42 }, Term = 2L });
10771078
await state.CommitAsync();
10781079
}
10791080

@@ -1085,6 +1086,7 @@ public static async Task EnsureMetadataPersistence()
10851086
Null(snapshotIndex);
10861087
Equal(1L, entries[0].Term);
10871088
Equal(1L, entries[1].Term);
1089+
Equal(2L, entries[2].Term);
10881090
return ValueTask.FromResult(Missing.Value);
10891091
};
10901092

0 commit comments

Comments
 (0)