Fix test for Windows

This commit is contained in:
Yuki Okushi 2019-12-22 03:17:40 +09:00
parent 54559a3688
commit a94deed341
1 changed files with 3 additions and 0 deletions

View File

@ -1222,7 +1222,10 @@ mod tests {
);
let bytes = test::read_body(resp).await;
#[cfg(unix)]
assert!(format!("{:?}", bytes).contains("/tests/test.png"));
#[cfg(windows)]
assert!(format!("{:?}", bytes).contains("/tests\\\\test.png"));
}
#[actix_rt::test]