Skip to content

Commit

Permalink
test(test_raw_node): rebase upstream master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Git committed Oct 15, 2018
1 parent 9ad5475 commit d7fe7f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration_cases/test_raw_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ fn test_raw_node_read_index() {
let s = new_storage();
let mut raw_node = new_raw_node(1, vec![], 10, 1, s.clone(), vec![new_peer(1)]);
let rd = raw_node.ready();
assert_eq!(rd.read_states(), wrs.as_slice());
s.wl().append(rd.entries()).expect("");
raw_node.advance(rd);
raw_node.campaign().expect("");
Expand All @@ -345,8 +344,8 @@ fn test_raw_node_read_index() {
assert!(!raw_node.raft.read_states.is_empty());
assert!(raw_node.has_ready());
let rd = raw_node.ready();
assert_eq!(rd.read_states, wrs);
s.wl().append(&rd.entries).expect("");
assert_eq!(rd.read_states(), wrs.as_slice());
s.wl().append(&rd.entries()).expect("");
raw_node.advance(rd);

// ensure raft.read_states is reset after advance
Expand Down

0 comments on commit d7fe7f8

Please # to comment.