IOSAD-157 Remove PEPSync.isRunning

IOSAD-157
Dirk Zimmermann 2019-11-20 09:10:05 +01:00
parent 56fca2337f
commit 876227d214
3 changed files with 0 additions and 11 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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]);
}