IOSAD-181 Back out: Don't use [PEPSession cleanup]

IOSAD-181
Dirk Zimmermann 2 years ago
parent 9c864babf2
commit 925f52f126
  1. 4
      pEpObjCTests/PEPSessionProviderTest.m
  2. 3
      pEpObjCTests/PepTests.m
  3. 2
      pEpObjCTests/TestUtils/PEPTestUtils.m

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

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

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

Loading…
Cancel
Save