Fix the broken test.

This commit is contained in:
Jordan Petridis 2018-04-28 14:53:43 +03:00
parent 2c8ff2d2f2
commit b0ac037964
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
2 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,7 @@
)
)]
#![allow(unknown_lints)]
// #![deny(unused_extern_crates, unused)]
#![deny(unused_extern_crates, unused)]
extern crate gdk;
extern crate gdk_pixbuf;

View File

@ -119,7 +119,6 @@ mod tests {
use std::fs;
use std::path::Path;
use std::sync::mpsc::channel;
use std::{thread, time};
#[test]
@ -142,11 +141,9 @@ mod tests {
// Get an episode
let episode: Episode = dbqueries::get_episode_from_pk(title, pd.id()).unwrap();
let (sender, _rx) = channel();
let download_fold = get_download_folder(&pd.title()).unwrap();
let fold2 = download_fold.clone();
add(episode.rowid(), download_fold, sender).unwrap();
add(episode.rowid(), download_fold).unwrap();
assert_eq!(ACTIVE_DOWNLOADS.read().unwrap().len(), 1);
// Give it soem time to download the file