Fixed stable unit tests.

This commit is contained in:
Jordan Petridis
2017-11-28 04:42:15 +02:00
parent 34e808182c
commit d81f9c6ad7
4 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -183,6 +183,7 @@ pub fn cache_image(pd: &Podcast) -> Option<String> {
mod tests {
use super::*;
use hammond_data::Source;
use hammond_data::feed::index;
use hammond_data::dbqueries;
use diesel::Identifiable;
@@ -205,7 +206,8 @@ mod tests {
let sid = source.id().clone();
// Convert Source it into a Feed and index it
source.into_feed().unwrap().index().unwrap();
let feed = source.into_feed().unwrap();
index(vec!(feed));
// Get the Podcast
let pd = dbqueries::get_podcast_from_source_id(sid).unwrap();