We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f040b commit ec5875eCopy full SHA for ec5875e
tests/index.rs
@@ -50,11 +50,12 @@ async fn test_files() {
50
for entry in std::fs::read_dir(path).unwrap() {
51
let entry = entry.unwrap();
52
let test_file_path = entry.path();
53
+ let test_file_path_string = test_file_path.to_string_lossy().replace('\\', "/");
54
let stem = test_file_path.file_stem().unwrap().to_str().unwrap();
55
if test_file_path.extension().unwrap_or_default() != "sql" {
56
continue;
57
}
- let req_str = format!("/{}?x=1", test_file_path.display());
58
+ let req_str = format!("/{}?x=1", test_file_path_string);
59
let resp = req_path(&req_str).await.unwrap();
60
let body = test::read_body(resp).await;
61
assert!(body.starts_with(b"<!DOCTYPE html>"));
0 commit comments