If a user's database is corrupted, we now try to fix it. I recommend reviewing `DatabaseRecovery` to see how this works, and `DatabaseRecoveryViewController` for the bulk of the UI.
15 lines
369 B
Swift
15 lines
369 B
Swift
//
|
|
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
import SignalServiceKit
|
|
|
|
class OWSFileSystemTest: XCTestCase {
|
|
func testFreeSpaceInBytes() throws {
|
|
let path = URL(fileURLWithPath: "/tmp")
|
|
let result = try XCTUnwrap(OWSFileSystem.freeSpaceInBytes(forPath: path))
|
|
XCTAssertGreaterThan(result, 1)
|
|
}
|
|
}
|