File: do-not-write-to-work-dir.patch

package info (click to toggle)
rust-actix-rt 2.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -324,3 +324,3 @@
             let handle = actix_rt::spawn(async move {
-                let f = tokio_uring::fs::File::create("test.txt").await.unwrap();
+                let f = tokio_uring::fs::File::create("/tmp/test.txt").await.unwrap();
                 let buf = b"Hello World!";
@@ -333,3 +333,3 @@
 
-                std::fs::remove_file("test.txt").unwrap();
+                std::fs::remove_file("/tmp/test.txt").unwrap();
             });