IOSAD-141 Give the threads a name. IOSAD-141
authorDirk Zimmermann <dz@pep.security>
Thu, 12 Sep 2019 16:41:52 +0200
branchIOSAD-141
changeset 1244d780d1356405
parent 1243 e258dfb17e7f
child 1245 cd15ff3a40b9
IOSAD-141 Give the threads a name.
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Thu Sep 12 16:41:52 2019 +0200
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Thu Sep 12 16:41:52 2019 +0200
     1.3 @@ -1488,6 +1488,7 @@
     1.4              }
     1.5              [expThread1Finished fulfill];
     1.6          }];
     1.7 +        [thread1 setName:@"Thread 1"];
     1.8  
     1.9          XCTestExpectation *expThread2Finished = [self expectationWithDescription:@"Thread2 finished"];
    1.10          NSThread *thread2 = [[NSThread alloc] initWithBlock:^{
    1.11 @@ -1513,6 +1514,7 @@
    1.12              }
    1.13              [expThread2Finished fulfill];
    1.14          }];
    1.15 +        [thread2 setName:@"Thread 2"];
    1.16  
    1.17          [thread1 start];
    1.18          [thread2 start];