Optimized the unit test & added fixed info to the CHANGES.md

This commit is contained in:
William 2019-02-08 16:30:45 +01:00
parent 5b96c0134b
commit dfff2fd634
2 changed files with 4 additions and 8 deletions

View File

@ -6,6 +6,10 @@
* Add `from_file` and `from_file_with_config` to `NamedFile` to allow sending files without a known path. #670
### Fixed
* Ignored the `If-Modified-Since` if `If-None-Match` is specified. #680
## [0.7.18] - 2019-01-10
### Added

View File

@ -969,17 +969,9 @@ mod tests {
#[test]
fn test_if_modified_since_ignored() {
assert!(NamedFile::open("test--").is_err());
let mut file = NamedFile::open("Cargo.toml")
.unwrap()
.set_cpu_pool(CpuPool::new(1));
{
file.file();
let _f: &File = &file;
}
{
let _f: &mut File = &mut file;
}
let since = header::HttpDate::from(
SystemTime::now().add(Duration::from_secs(60)));