Skip to content

Commit

Permalink
fix: improve readability
Browse files Browse the repository at this point in the history
Signed-off-by: Clement <[email protected]>
  • Loading branch information
clement2026 committed Aug 31, 2024
1 parent e40267f commit ccbec07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/etcdserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ func TestIsActive(t *testing.T) {
// newDummyPutReqReady is useful in unit tests with a partially functional raft.Node
// (nodeConfChangeCommitterRecorder) that doesn't always append raft log entries properly.
// When this happens, it can crash when creating a raft log snapshot due to missing entries.
// To prevent this crash, you can send put requests to raft.Node's readyc after the server starts.
// To prevent this crash, we can send put requests to raft.Node's readyc after the server starts.
func newDummyPutReqReady() raft.Ready {
req := &pb.InternalRaftRequest{
Header: &pb.RequestHeader{ID: 1},
Expand Down

0 comments on commit ccbec07

Please sign in to comment.