IOSAD-157 Remove PEPSync.isRunning
parent
56fca2337f
commit
876227d214
|
@ -160,7 +160,6 @@ static __weak PEPSync *s_pEpSync;
|
|||
|
||||
- (void)startup
|
||||
{
|
||||
self.isRunning = YES;
|
||||
g_isKeySyncEnabled = YES;
|
||||
|
||||
// Make sure queue is empty when we start.
|
||||
|
@ -227,7 +226,6 @@ static __weak PEPSync *s_pEpSync;
|
|||
os_log_error(s_logger, "could not create session for starting the sync loop");
|
||||
}
|
||||
|
||||
self.isRunning = NO;
|
||||
g_isKeySyncEnabled = NO;
|
||||
|
||||
os_log(s_logger, "sync loop finished");
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
*/
|
||||
@interface PEPSync : NSObject
|
||||
|
||||
/// Is the sync loop running?
|
||||
@property (nonatomic) BOOL isRunning;
|
||||
|
||||
@property (nonatomic, nullable, weak) id<PEPSendMessageDelegate> sendMessageDelegate;
|
||||
@property (nonatomic, nullable, weak) id<PEPNotifyHandshakeDelegate> notifyHandshakeDelegate;
|
||||
|
||||
|
|
|
@ -1549,12 +1549,6 @@
|
|||
notifyHandshakeDelegate:self.notifyHandshakeDelegate];
|
||||
[self.sync startup];
|
||||
|
||||
XCTKVOExpectation *expHaveStartedSync = [[XCTKVOExpectation alloc]
|
||||
initWithKeyPath:@"isRunning"
|
||||
object:self.sync
|
||||
expectedValue: [NSNumber numberWithBool:YES]];
|
||||
[self waitForExpectations:@[expHaveStartedSync] timeout:PEPTestInternalSyncTimeout];
|
||||
|
||||
XCTAssertTrue([[PEPSession new] isKeySyncEnabled]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue