Skip to content

Commit 47bb093

Browse files
committed
test: fix a bit rr_test
not sure why we seem to still receive additional stopped after maybe complete-move/response, but it doesn't seem to be a problem
1 parent a6dfdfe commit 47bb093

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/db-backend/tests/rr_test.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,28 +131,28 @@ fn test_rr() {
131131
.send(&next_request)
132132
.unwrap_or_else(|err| panic!("failed to send next request: {err}"));
133133

134-
for _ in 0 .. 7 {
134+
for _ in 0 .. 4 {
135135
let _ = dap::read_dap_message_from_reader(&mut reader).unwrap();
136136
}
137137

138-
let last_location: task::Location; // = task::Location::default();
138+
// let last_location: task::Location; // = task::Location::default();
139139

140140
let msg_complete_move_before_local_check = dap::read_dap_message_from_reader(&mut reader).unwrap();
141141
match msg_complete_move_before_local_check {
142142
DapMessage::Event(e) => {
143143
assert_eq!(e.event, "ct/complete-move");
144144
let move_state = serde_json::from_value::<task::MoveState>(e.body).expect("valid move state");
145-
last_location = move_state.location.clone();
145+
// last_location = move_state.location.clone();
146146
let path = PathBuf::from(move_state.clone().location.path);
147147
let filename = path.file_name().expect("filename");
148148
assert_eq!(filename.display().to_string(), "rr_gdb.rs");
149-
assert_eq!(move_state.location.line, 72);
149+
assert_eq!(move_state.location.line, 70);
150150
assert_eq!(move_state.location.function_name.starts_with("rr_gdb::run"), true);
151151
}
152152
_ => panic!("expected a complete move events, but got {:?}", msg_complete_move_before_local_check),
153153

154154
}
155-
let _next_response = dap::from_reader(&mut reader).unwrap();
155+
let _next_response = dap::read_dap_message_from_reader(&mut reader).unwrap();
156156

157157
let _next_response = dap::read_dap_message_from_reader(&mut reader).unwrap();
158158

0 commit comments

Comments
 (0)