diff --git a/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Central/GNSCentralPeerManagerTest.m b/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Central/GNSCentralPeerManagerTest.m index f7a989c1..e581136f 100644 --- a/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Central/GNSCentralPeerManagerTest.m +++ b/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Central/GNSCentralPeerManagerTest.m @@ -87,14 +87,14 @@ static void FireTimer(void) { - (void)setUp { _peripheralUUID = [NSUUID UUID]; _serviceUUID = [CBUUID UUIDWithNSUUID:[NSUUID UUID]]; - _centralManagerMock = [OCMStrictClassMock([GNSCentralManager class]) noRetainObjectArgs]; + _centralManagerMock = OCMStrictClassMock([GNSCentralManager class]); OCMStub([_centralManagerMock socketServiceUUID]).andReturn(_serviceUUID); _cbCentralManagerState = CBCentralManagerStatePoweredOn; OCMStub([_centralManagerMock cbCentralManagerState]) .andDo(^(NSInvocation *invocation) { [invocation setReturnValue:&_cbCentralManagerState]; }); - _peripheralMock = [OCMStrictClassMock([CBPeripheral class]) noRetainObjectArgs]; + _peripheralMock = OCMStrictClassMock([CBPeripheral class]); OCMStub([_peripheralMock identifier]).andReturn(_peripheralUUID); _peripheralState = CBPeripheralStateDisconnected; OCMStub([_peripheralMock state]) diff --git a/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Shared/GNSSocketTest.m b/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Shared/GNSSocketTest.m index 1b54dffc..23728acf 100644 --- a/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Shared/GNSSocketTest.m +++ b/internal/platform/implementation/apple/Mediums/Ble/Sockets/Tests/Shared/GNSSocketTest.m @@ -32,9 +32,9 @@ _centralPeerMock = OCMStrictClassMock([CBCentral class]); NSUUID *identifier = [NSUUID UUID]; OCMStub([_centralPeerMock identifier]).andReturn(identifier); - _socketOwner = [OCMStrictProtocolMock(@protocol(GNSSocketOwner)) noRetainObjectArgs]; + _socketOwner = OCMStrictProtocolMock(@protocol(GNSSocketOwner)); _socket = [[GNSSocket alloc] initWithOwner:_socketOwner centralPeer:_centralPeerMock]; - _socketDelegate = [OCMStrictProtocolMock(@protocol(GNSSocketDelegate)) noRetainObjectArgs]; + _socketDelegate = OCMStrictProtocolMock(@protocol(GNSSocketDelegate)); _socket.delegate = _socketDelegate; XCTAssertFalse(_socket.connected); }