mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
test: actually insert pixel app into HTTP cache
This commit is contained in:
@@ -405,10 +405,15 @@ mod tests {
|
|||||||
);
|
);
|
||||||
|
|
||||||
http_cache_put(t, xdc_editor_url, &xdc_response).await?;
|
http_cache_put(t, xdc_editor_url, &xdc_response).await?;
|
||||||
|
http_cache_put(t, xdc_pixel_url, &xdc_response).await?;
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
http_cache_get(t, xdc_editor_url).await?,
|
http_cache_get(t, xdc_editor_url).await?,
|
||||||
Some(xdc_response.clone())
|
Some(xdc_response.clone())
|
||||||
);
|
);
|
||||||
|
assert_eq!(
|
||||||
|
http_cache_get(t, xdc_pixel_url).await?,
|
||||||
|
Some(xdc_response.clone())
|
||||||
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
http_cache_get(t, "https://webxdc.org/").await?,
|
http_cache_get(t, "https://webxdc.org/").await?,
|
||||||
|
|||||||
Reference in New Issue
Block a user