mirror of https://github.com/fafhrd91/actix-web
Optimized the unit test & added fixed info to the CHANGES.md
This commit is contained in:
parent
5b96c0134b
commit
dfff2fd634
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
* Add `from_file` and `from_file_with_config` to `NamedFile` to allow sending files without a known path. #670
|
* 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
|
## [0.7.18] - 2019-01-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -969,17 +969,9 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_if_modified_since_ignored() {
|
fn test_if_modified_since_ignored() {
|
||||||
assert!(NamedFile::open("test--").is_err());
|
|
||||||
let mut file = NamedFile::open("Cargo.toml")
|
let mut file = NamedFile::open("Cargo.toml")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.set_cpu_pool(CpuPool::new(1));
|
.set_cpu_pool(CpuPool::new(1));
|
||||||
{
|
|
||||||
file.file();
|
|
||||||
let _f: &File = &file;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
let _f: &mut File = &mut file;
|
|
||||||
}
|
|
||||||
let since = header::HttpDate::from(
|
let since = header::HttpDate::from(
|
||||||
SystemTime::now().add(Duration::from_secs(60)));
|
SystemTime::now().add(Duration::from_secs(60)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue