Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Jun 4, 2024
1 parent bbc772a commit 3422dda
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions UnitTests/Sources/LoggingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,7 @@ class LoggingTests: XCTestCase {
let currentLogFile = logsFileDirectory.appending(path: "console.1.log")
let fileHandle = try FileHandle(forWritingTo: currentLogFile)
try fileHandle.seekToEnd()
guard let newLineData = Data("newline".utf8) else {
XCTFail("Couldn't create data to write to disk.")
return
}

try fileHandle.write(contentsOf: newLineData)
try fileHandle.write(contentsOf: Data("newline".utf8))
try fileHandle.close()

// Then that file should now be the first log file.
Expand Down

0 comments on commit 3422dda

Please sign in to comment.