Skip to content

Commit b4d9bb1

Browse files
committed
Fix XCTests
1 parent 4f80ed7 commit b4d9bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/HAPTests/CharacteristicTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CharacteristicTests: XCTestCase {
1313

1414
func testReadOptionalValueType() {
1515
let characteristic = GenericCharacteristic<Bool?>(type: .identify, value: false)
16-
guard let value = characteristic.getValue() as? Bool? else {
16+
guard let value = characteristic.getValue(fromChannel: nil) as? Bool? else {
1717
XCTFail("Could not get value")
1818
return
1919
}
@@ -36,7 +36,7 @@ class CharacteristicTests: XCTestCase {
3636
} catch {
3737
XCTFail("Could not set value: \(error)")
3838
}
39-
guard let value = characteristic.getValue() as? Bool? else {
39+
guard let value = characteristic.getValue(fromChannel: nil) as? Bool? else {
4040
XCTFail("Could not get value")
4141
return
4242
}

0 commit comments

Comments
 (0)