From b8669ede1cf0611b44f7a05ea533f1cf798b32ab Mon Sep 17 00:00:00 2001 From: dmissmann <37073203+dmissmann@users.noreply.github.com> Date: Mon, 18 Nov 2024 05:47:49 +0100 Subject: [PATCH] revert reuse of xctestconfig (#514) serializing the config makes changes to it and actually invalidates it --- ios/testmanagerd/xcuitestrunner.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ios/testmanagerd/xcuitestrunner.go b/ios/testmanagerd/xcuitestrunner.go index 86c78a9e..a49dbf3b 100644 --- a/ios/testmanagerd/xcuitestrunner.go +++ b/ios/testmanagerd/xcuitestrunner.go @@ -535,8 +535,7 @@ func createTestConfigOnDevice(testSessionID uuid.UUID, info testInfo, houseArres testBundleURL := path.Join(info.testApp.path, "PlugIns", xctestConfigFileName) - testConfig := nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version) - config := testConfig + config := nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version) result, err := nskeyedarchiver.ArchiveXML(config) if err != nil { return "", nskeyedarchiver.XCTestConfiguration{}, err @@ -546,7 +545,7 @@ func createTestConfigOnDevice(testSessionID uuid.UUID, info testInfo, houseArres if err != nil { return "", nskeyedarchiver.XCTestConfiguration{}, err } - return xctestConfigPath, testConfig, nil + return xctestConfigPath, nskeyedarchiver.NewXCTestConfiguration(info.targetApp.bundleName, testSessionID, info.targetApp.bundleID, info.targetApp.path, testBundleURL, testsToRun, testsToSkip, isXCTest, version), nil } func createTestConfig(info testInfo, testSessionID uuid.UUID, xctestConfigFileName string, testsToRun []string, testsToSkip []string, isXCTest bool, version *semver.Version) nskeyedarchiver.XCTestConfiguration {