Skip to content

Commit

Permalink
Tidy-up useless directories at the end of a test run.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Sep 11, 2024
1 parent af3a6cc commit b85bd60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnitTests/Sources/SessionDirectoriesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class SessionDirectoriesTests: XCTestCase {
XCTAssertTrue(fileManager.directoryExists(at: sessionDirectories.cacheDirectory))
XCTAssertEqual(try fileManager.numberOfItems(at: sessionDirectories.cacheDirectory), 0)
XCTAssertFalse(fileManager.fileExists(atPath: sessionDirectories.mockEventCachePath))

// The tests are done, tidy up these useless directories 🧹
sessionDirectories.delete()
}
}

Expand Down

0 comments on commit b85bd60

Please sign in to comment.