mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Add NetworkError::LoadCancelled
variant.
This commit is contained in:
parent
aa078a0780
commit
55c2f93740
4 changed files with 7 additions and 6 deletions
|
@ -220,6 +220,6 @@ fn test_cancelled_listener() {
|
|||
let _ = body_sender.send(body);
|
||||
let response = receiver.recv().unwrap();
|
||||
assert_eq!(response.progress_port.recv().unwrap(),
|
||||
ProgressMsg::Done(Err(NetworkError::Internal("load cancelled".to_owned()))));
|
||||
ProgressMsg::Done(Err(NetworkError::LoadCancelled)));
|
||||
resource_thread.send(ControlMsg::Exit).unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue