test: fix unstable test test_node_merge_write_data_to_source_region_after_merging
@@ -994,6 +994,11 @@ fn test_node_merge_write_data_to_source_region_after_merging() {
let right_peer_2 = find_peer(&right, 2).cloned().unwrap();
assert_eq!(right_peer_2.get_id(), 2);
+
+ // Make sure peer 2 finish split before pause
+ cluster.must_put(b"k2pause", b"vpause");
+ must_get_equal(&cluster.get_engine(2), b"k2pause", b"vpause");
+
let on_handle_apply_2_fp = "on_handle_apply_2";
fail::cfg(on_handle_apply_2_fp, "pause").unwrap();
