Skip to content

Commit b8669ed

Browse files
authored
revert reuse of xctestconfig (danielpaulus#514)
serializing the config makes changes to it and actually invalidates it
1 parent a8240fa commit b8669ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ios/testmanagerd/xcuitestrunner.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ func createTestConfigOnDevice(testSessionID uuid.UUID, info testInfo, houseArres
535535

536536
testBundleURL := path.Join(info.testApp.path, "PlugIns", xctestConfigFileName)
537537

538-
testConfig := nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version)
539-
config := testConfig
538+
config := nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version)
540539
result, err := nskeyedarchiver.ArchiveXML(config)
541540
if err != nil {
542541
return "", nskeyedarchiver.XCTestConfiguration{}, err
@@ -546,7 +545,7 @@ func createTestConfigOnDevice(testSessionID uuid.UUID, info testInfo, houseArres
546545
if err != nil {
547546
return "", nskeyedarchiver.XCTestConfiguration{}, err
548547
}
549-
return xctestConfigPath, testConfig, nil
548+
return xctestConfigPath, nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version), nil
550549
}
551550

552551
func createTestConfig(info testInfo, testSessionID uuid.UUID, xctestConfigFileName string, testsToRun []string, testsToSkip []string, isXCTest bool, version *semver.Version) nskeyedarchiver.XCTestConfiguration {

0 commit comments

Comments
 (0)