Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Apr 19, 2019
1 parent bfa4956 commit 09467b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/BluetoothLinuxTests/BluetoothLinuxTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ final class BluetoothLinuxTests: XCTestCase {

do { throw error } // deal with protocol and not concrete type
catch {
#if os(macOS)
XCTAssertEqual(error.localizedDescription, string)
#endif
let errorDescription = "Error Domain=\(NSPOSIXErrorDomain) Code=\(errorCode.rawValue) \"\(string)\""
XCTAssertEqual("\(error)", errorDescription)
}
Expand Down

0 comments on commit 09467b6

Please sign in to comment.