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:
commit
ea35dcbc74
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user