Add NetworkError::LoadCancelled variant.

This commit is contained in:
Corey Farwell 2016-04-27 00:23:21 -04:00
parent aa078a0780
commit 55c2f93740
4 changed files with 7 additions and 6 deletions

View file

@ -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();
}