File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11name : Test
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
48
59jobs :
610 test :
3236 bundle install
3337 pod install
3438
35- - name : Validate Podfile
36- run : pod lib lint
37-
3839 - name : iOS Tests
3940 run : |
4041 xcodebuild test \
Original file line number Diff line number Diff line change @@ -1686,7 +1686,7 @@ - (void)initializeDeviceInfo {
16861686 if (self.deviceId == nil ) {
16871687 self.deviceId = [self .dbHelper getValue: DEVICE_ID];
16881688 if (![self isValidDeviceId: self .deviceId]) {
1689- self. deviceId = [self _getDeviceId ];
1689+ self-> _deviceId = [self _getDeviceId ];
16901690 [self .dbHelper insertOrReplaceKeyValue: DEVICE_ID value: self .deviceId];
16911691 }
16921692 }
Original file line number Diff line number Diff line change @@ -1708,9 +1708,9 @@ - (void)testOpenURLFiresDeepLinkEvent {
17081708- (void )testGetDeviceIdBeforeInit {
17091709 NSString *instanceName = @" testGetDeviceIdBeforeAndAfterInit" ;
17101710
1711- // Clear device ID from db
1711+ // Delete DB before running the test to start fresh
17121712 AMPDatabaseHelper *dbHelper = [AMPDatabaseHelper getDatabaseHelper: instanceName];
1713- [dbHelper insertOrReplaceKeyValue: @" device_id " value: nil ];
1713+ [dbHelper deleteDB ];
17141714
17151715 // Device ID should get generated before api key init
17161716 Amplitude *client = [Amplitude instanceWithName: instanceName];
You can’t perform that action at this time.
0 commit comments