Skip to content

Commit 0582986

Browse files
committed
Fix IndexDependencyResolutionTests when EnableDebugActivityLogs is enabled
1 parent 9268518 commit 0582986

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/SWBCoreTests/IndexTargetDependencyResolverTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ import SWBUtil
135135

136136
let tester = try await BuildOperationTester(core, workspace, simulated: false)
137137
let workspaceContext = WorkspaceContext(core: core, workspace: tester.workspace, processExecutionCache: .sharedForTesting)
138+
workspaceContext.updateUserPreferences(.defaultForTesting)
138139
try await tester.checkIndexBuildGraph(targets: [macApp, macApp2, iosApp, iosApp2, fwkTarget_mac, fwkTarget_ios], workspaceOperation: true) { results in
139140
#expect(results.targets().map { results.targetNameAndPlatform($0) } == [
140141
"FwkTarget_mac-macos", "macApp-macos", "macApp2-macos",
@@ -262,6 +263,7 @@ import SWBUtil
262263

263264
let tester = try await BuildOperationTester(core, workspace, simulated: false)
264265
let workspaceContext = WorkspaceContext(core: core, workspace: tester.workspace, processExecutionCache: .sharedForTesting)
266+
workspaceContext.updateUserPreferences(.defaultForTesting)
265267
try await tester.checkIndexBuildGraph(targets: [macApp, iosApp, watchKitApp, watchKitExt], workspaceOperation: true) { results in
266268
#expect(results.targets().map { results.targetNameAndPlatform($0) } == [
267269
"macApp-macos", "iosApp-iphoneos", "iosApp-iphonesimulator",
@@ -758,6 +760,7 @@ import SWBUtil
758760

759761
let tester = try await BuildOperationTester(core, workspace, simulated: false)
760762
let workspaceContext = WorkspaceContext(core: core, workspace: tester.workspace, processExecutionCache: .sharedForTesting)
763+
workspaceContext.updateUserPreferences(.defaultForTesting)
761764
try await tester.checkIndexBuildGraph(targets: [catalystAppTarget1, catalystAppTarget2, catalystAppTarget3, osxAppTarget, osxAppTarget_iosmac, fwkTarget, fwkTarget_osx], workspaceOperation: true) { results in
762765
#expect(results.targets().map { results.targetNameAndPlatform($0) } == [
763766
"FwkTarget-iphoneos", "catalystApp1-iphoneos", "FwkTarget-iphonesimulator", "catalystApp1-iphonesimulator", "FwkTarget-iosmac", "catalystApp1-iosmac", "catalystApp2-iphoneos", "catalystApp2-iphonesimulator", "catalystApp2-iosmac", "catalystApp3-iphoneos", "catalystApp3-iphonesimulator", "catalystApp3-iosmac", "FwkTarget_osx-macos", "catalystApp3-macos", "osxApp-macos", "osxApp_iosmac-iosmac", "FwkTarget_osx-iosmac",

0 commit comments

Comments
 (0)