diff options
Diffstat (limited to 'src/gateway/http.rs')
-rw-r--r-- | src/gateway/http.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gateway/http.rs b/src/gateway/http.rs index 990a1fc..6ccc2b5 100644 --- a/src/gateway/http.rs +++ b/src/gateway/http.rs @@ -107,9 +107,9 @@ mod tests { loop { let interpret = irx.recv().expect("itx is closed"); match interpret.command { - Command::StartDownload(ids) => { + Command::StartDownload(id) => { let tx = interpret.response_tx.unwrap(); - tx.lock().unwrap().send(Event::FoundSystemInfo(ids.first().unwrap().to_owned())); + tx.lock().unwrap().send(Event::FoundSystemInfo(id)); } _ => panic!("expected AcceptUpdates"), } @@ -119,7 +119,7 @@ mod tests { crossbeam::scope(|scope| { for id in 0..10 { scope.spawn(move || { - let cmd = Command::StartDownload(vec!(format!("{}", id))); + let cmd = Command::StartDownload(format!("{}", id)); let client = AuthClient::default(); let url = "http://127.0.0.1:8888".parse().unwrap(); let body = json::encode(&cmd).unwrap(); |