Split the unit test monolyths to per-feed tests.
This commit is contained in:
parent
aefc237296
commit
5598740fd5
File diff suppressed because one or more lines are too long
@ -10,9 +10,10 @@ use models::{NewSource, Source, Podcast, Episode};
|
|||||||
|
|
||||||
pub fn foo() {
|
pub fn foo() {
|
||||||
let inpt = vec![
|
let inpt = vec![
|
||||||
|
"https://request-for-explanation.github.io/podcast/rss.xml",
|
||||||
"https://feeds.feedburner.com/InterceptedWithJeremyScahill",
|
"https://feeds.feedburner.com/InterceptedWithJeremyScahill",
|
||||||
"http://feeds.feedburner.com/linuxunplugged",
|
|
||||||
"http://feeds.propublica.org/propublica/main",
|
"http://feeds.propublica.org/propublica/main",
|
||||||
|
"http://feeds.feedburner.com/linuxunplugged",
|
||||||
];
|
];
|
||||||
|
|
||||||
let db = ::establish_connection();
|
let db = ::establish_connection();
|
||||||
@ -20,8 +21,7 @@ pub fn foo() {
|
|||||||
match insert_source(&db, feed) {
|
match insert_source(&db, feed) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(foo) => {
|
Err(foo) => {
|
||||||
debug!("Error: {}", foo);
|
error!("Error: {}", foo);
|
||||||
debug!("Skipping...");
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user