IOSAD-181 Don't use [PEPSession cleanup]

IOSAD-181
Dirk Zimmermann 2 years ago
parent 57e96c061d
commit dcf9db87df
  1. 4
      pEpObjCTests/PEPSessionProviderTest.m
  2. 3
      pEpObjCTests/PepTests.m
  3. 2
      pEpObjCTests/TestUtils/PEPTestUtils.m

@ -20,7 +20,7 @@
- (void)tearDown
{
[PEPSession cleanup];
[PEPSessionProvider cleanup];
}
- (void)testSeperatedSessionPerThread {
@ -95,7 +95,7 @@
XCTAssertNotNil(sessionBackground);
XCTAssertEqual(sessionMain, sessionMain2, @"The main session stayed the same (was kept \
alive, was not recreated)");
[PEPSession cleanup];
[PEPSessionProvider cleanup];
PEPInternalSession *sessionMainAfterCleanup = [PEPSessionProvider session];
XCTAssertNotNil(sessionMainAfterCleanup);
XCTAssertNotEqual(sessionMainAfterCleanup, sessionMain,

@ -11,6 +11,7 @@
#import "PEPObjCAdapter.h"
#import "PEPSession.h"
#import "PEPLanguage.h"
#import "PEPSessionProvider.h"
@interface PepTests : XCTestCase
@end
@ -24,7 +25,7 @@
- (void)tearDown
{
[PEPSession cleanup];
[PEPSessionProvider cleanup];
}
- (void)testSessionFinalization {

@ -119,7 +119,7 @@ const NSInteger PEPTestInternalSyncTimeout = 20;
+ (void)cleanUp
{
[PEPSession cleanup];
[PEPSessionProvider cleanup];
NSString *homeString = [PEPObjCAdapter perUserDirectoryString];
NSURL *homeUrl = [NSURL fileURLWithPath:homeString isDirectory:YES];

Loading…
Cancel
Save