Skip to content

Commit

Permalink
Fix XCTests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrooker committed Feb 27, 2019
1 parent 4f80ed7 commit b4d9bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/HAPTests/CharacteristicTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CharacteristicTests: XCTestCase {

func testReadOptionalValueType() {
let characteristic = GenericCharacteristic<Bool?>(type: .identify, value: false)
guard let value = characteristic.getValue() as? Bool? else {
guard let value = characteristic.getValue(fromChannel: nil) as? Bool? else {
XCTFail("Could not get value")
return
}
Expand All @@ -36,7 +36,7 @@ class CharacteristicTests: XCTestCase {
} catch {
XCTFail("Could not set value: \(error)")
}
guard let value = characteristic.getValue() as? Bool? else {
guard let value = characteristic.getValue(fromChannel: nil) as? Bool? else {
XCTFail("Could not get value")
return
}
Expand Down

0 comments on commit b4d9bb1

Please sign in to comment.