|
@@ -586,7 +586,7 @@ mod tests {
|
|
|
use testdir::testdir;
|
|
|
|
|
|
#[test]
|
|
|
- fn relative_test() {
|
|
|
+ fn relative_url_test() {
|
|
|
let rel_abs: HashMap<(&str, &str), &str> = HashMap::from([
|
|
|
(
|
|
|
("http://meow.org/rabbit", "/llama/index.html"),
|
|
@@ -667,8 +667,8 @@ mod tests {
|
|
|
}
|
|
|
|
|
|
#[test]
|
|
|
- #[cfg(not(feature = "local-httpbin"))]
|
|
|
- fn cache_fetch() {
|
|
|
+ // #[cfg(not(feature = "local-httpbin"))]
|
|
|
+ fn remote_test() {
|
|
|
let mut dir = testdir!();
|
|
|
dir.push("cache");
|
|
|
|
|
@@ -702,6 +702,7 @@ mod tests {
|
|
|
/*
|
|
|
Add to Config.toml:
|
|
|
[features]
|
|
|
+ default = ["local-httpbin"]
|
|
|
local-httpbin = []
|
|
|
|
|
|
Use:
|
|
@@ -716,7 +717,7 @@ mod tests {
|
|
|
|
|
|
#[test]
|
|
|
#[cfg(feature = "local-httpbin")]
|
|
|
- fn call_local() {
|
|
|
+ fn local_httpbin_test() {
|
|
|
let mut dir = testdir!();
|
|
|
dir.push("cache");
|
|
|
|
|
@@ -773,7 +774,7 @@ mod tests {
|
|
|
|
|
|
#[test]
|
|
|
#[cfg(feature = "local-httpbin")]
|
|
|
- fn cache_local() {
|
|
|
+ fn local_httpbin_cache_test() {
|
|
|
let mut dir = testdir!();
|
|
|
dir.push("cache");
|
|
|
|