Split the unit test monolyths to per-feed tests.

This commit is contained in:
Jordan Petridis
2017-09-21 12:49:14 +03:00
parent aefc237296
commit 5598740fd5
2 changed files with 64 additions and 60 deletions
+61 -57
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -10,9 +10,10 @@ use models::{NewSource, Source, Podcast, Episode};
pub fn foo() {
let inpt = vec![
"https://request-for-explanation.github.io/podcast/rss.xml",
"https://feeds.feedburner.com/InterceptedWithJeremyScahill",
"http://feeds.feedburner.com/linuxunplugged",
"http://feeds.propublica.org/propublica/main",
"http://feeds.feedburner.com/linuxunplugged",
];
let db = ::establish_connection();
@@ -20,8 +21,7 @@ pub fn foo() {
match insert_source(&db, feed) {
Ok(_) => {}
Err(foo) => {
debug!("Error: {}", foo);
debug!("Skipping...");
error!("Error: {}", foo);
continue;
}
}