@@ -28,6 +28,14 @@ - (void)setUp {
28
28
29
29
manager = [self samTest ];
30
30
[manager removeAllSessionAttributes ];
31
+
32
+ NSFileManager *fileManager = [NSFileManager defaultManager ];
33
+ if ([fileManager fileExistsAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file ]]) {
34
+ [fileManager removeItemAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file ] error: nil ];
35
+ }
36
+ if ([fileManager fileExistsAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file_private ]]) {
37
+ [fileManager removeItemAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file_private ] error: nil ];
38
+ }
31
39
}
32
40
33
41
- (NRMASAM*) samTest {
@@ -294,14 +302,6 @@ - (void)waitForAttributesToPersist:(NSArray<NSString *> *)expectedAttributes tim
294
302
295
303
- (void )testPersistedSessionAnalytics {
296
304
297
- NSFileManager *fileManager = [NSFileManager defaultManager ];
298
- if ([fileManager fileExistsAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file ]]) {
299
- [fileManager removeItemAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file ] error: nil ];
300
- }
301
- if ([fileManager fileExistsAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file_private ]]) {
302
- [fileManager removeItemAtPath: [NSString stringWithFormat: @" %@ /%@ " ,[NewRelicInternalUtils getStorePath ],kNRMA_Attrib_file_private ] error: nil ];
303
- }
304
-
305
305
NSString *attribute = @" blarg" ;
306
306
NSString *attribute2 = @" blarg2" ;
307
307
NSString *attribute3 = @" privateBlarg3" ;
0 commit comments