mirror of https://github.com/fafhrd91/actix-web
Fix test for Windows
This commit is contained in:
parent
54559a3688
commit
a94deed341
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue