1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

Merge pull request #180 from pfrenssen/template_yarte-test-failure

Several tests are failing
This commit is contained in:
Sven-Hendrik Haase 2019-09-29 17:28:10 +02:00 committed by GitHub
commit ea35dcbc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,9 @@ language: rust
sudo: false sudo: false
dist: trusty dist: trusty
services:
- redis-server
cache: cache:
apt: true apt: true
directories: directories:
@ -39,6 +42,7 @@ before_script:
script: script:
- cargo check --all - cargo check --all
- cargo test --all --no-fail-fast
- | - |
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
cargo clippy cargo clippy

View File

@ -44,7 +44,7 @@ mod test {
assert_eq!( assert_eq!(
resp.headers().get(http::header::CONTENT_TYPE).unwrap(), resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
"text/html" "text/html; charset=utf-8"
); );
let bytes = atest::read_body(resp); let bytes = atest::read_body(resp);
@ -73,7 +73,7 @@ mod test {
assert_eq!( assert_eq!(
resp.headers().get(http::header::CONTENT_TYPE).unwrap(), resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
"text/html" "text/html; charset=utf-8"
); );
let bytes = atest::read_body(resp); let bytes = atest::read_body(resp);
@ -102,7 +102,7 @@ mod test {
assert_eq!( assert_eq!(
resp.headers().get(http::header::CONTENT_TYPE).unwrap(), resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
"text/html" "text/html; charset=utf-8"
); );
let bytes = atest::read_body(resp); let bytes = atest::read_body(resp);