| ... | @@ -319,9 +319,10 @@ fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const fs.File) !void | ... | @@ -319,9 +319,10 @@ fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const fs.File) !void |
| 319 | test "cache file and the recall it" { | 319 | test "cache file and the recall it" { |
| 320 | const cwd = fs.cwd(); | 320 | const cwd = fs.cwd(); |
| 321 | | 321 | |
| | 322 | const temp_file = "test.txt"; |
| 322 | const temp_manifest_dir = "temp_manifest_dir"; | 323 | const temp_manifest_dir = "temp_manifest_dir"; |
| 323 | | 324 | |
| 324 | try cwd.writeFile("test.txt", "Hello, world!\n"); | 325 | try cwd.writeFile(temp_file, "Hello, world!\n"); |
| 325 | | 326 | |
| 326 | var digest1: [BASE64_DIGEST_LEN]u8 = undefined; | 327 | var digest1: [BASE64_DIGEST_LEN]u8 = undefined; |
| 327 | var digest2: [BASE64_DIGEST_LEN]u8 = undefined; | 328 | var digest2: [BASE64_DIGEST_LEN]u8 = undefined; |
| ... | @@ -356,4 +357,5 @@ test "cache file and the recall it" { | ... | @@ -356,4 +357,5 @@ test "cache file and the recall it" { |
| 356 | debug.assert(mem.eql(u8, digest1[0..], digest2[0..])); | 357 | debug.assert(mem.eql(u8, digest1[0..], digest2[0..])); |
| 357 | | 358 | |
| 358 | try cwd.deleteTree(temp_manifest_dir); | 359 | try cwd.deleteTree(temp_manifest_dir); |
| | 360 | try cwd.deleteFile(temp_file); |
| 359 | } | 361 | } |