Signal-iOS/SignalServiceKit/tests/Util/OWSFileSystemTest.swift
Evan Hahn 349681ff85
Attempt to recover corrupted databases
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.
2022-10-06 16:42:19 -05:00

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)
}
}