Skip to content

Commit 7bb5279

Browse files
fixup: Tests run in parallel; use unique temp file name
Signed-off-by: Si Beaumont <[email protected]>
1 parent 865fd70 commit 7bb5279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SystemTests/FileOperationsTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ final class FileOperationsTest: XCTestCase {
167167

168168
#if !os(Windows)
169169
func testResizeFile() throws {
170-
let fd = try FileDescriptor.open("/tmp/b.txt", .readWrite, options: [.create, .truncate], permissions: .ownerReadWrite)
170+
let fd = try FileDescriptor.open("/tmp/\(UUID().uuidString).txt", .readWrite, options: [.create, .truncate], permissions: .ownerReadWrite)
171171
try fd.closeAfter {
172172
// File should be empty initially.
173173
XCTAssertEqual(try fd.fileSize(), 0)

0 commit comments

Comments
 (0)