Skip to content

Commit 72fd312

Browse files
committed
Fix tests - all pass when run concurrently
1 parent b34544a commit 72fd312

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Tests/AppTests/AnalyzerTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ extension AllTests.AnalyzerTests {
10591059
// points to the correct version of Xcode!
10601060
try await withDependencies {
10611061
$0.fileManager.fileExists = FileManagerClient.liveValue.fileExists(atPath:)
1062+
$0.logger = .noop
10621063
$0.shell = .liveValue
10631064
} operation: {
10641065
// setup
@@ -1080,6 +1081,7 @@ extension AllTests.AnalyzerTests {
10801081
// See also https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/1441
10811082
try await withDependencies {
10821083
$0.fileManager.fileExists = FileManagerClient.liveValue.fileExists(atPath:)
1084+
$0.logger = .noop
10831085
$0.shell = .liveValue
10841086
} operation: {
10851087
// setup
@@ -1100,6 +1102,7 @@ extension AllTests.AnalyzerTests {
11001102
// points to the correct version of Xcode!
11011103
try await withDependencies {
11021104
$0.fileManager.fileExists = FileManagerClient.liveValue.fileExists(atPath:)
1105+
$0.logger = .noop
11031106
$0.shell = .liveValue
11041107
} operation: {
11051108
// setup
@@ -1126,6 +1129,9 @@ extension AllTests.AnalyzerTests {
11261129
// NB: If this test fails on macOS make sure xcode-select -p
11271130
// points to the correct version of Xcode!
11281131
// setup
1132+
try await withDependencies {
1133+
$0.logger = .noop
1134+
} operation: {
11291135
try await withTempDir { @Sendable tempDir in
11301136
let fixture = fixturesDirectory()
11311137
.appendingPathComponent("5.9-Package-swift").path
@@ -1149,6 +1155,7 @@ extension AllTests.AnalyzerTests {
11491155
#endif
11501156
}
11511157
}
1158+
}
11521159

11531160
@Test func issue_577() async throws {
11541161
// Duplicate "latest release" versions

Tests/AppTests/GitlabBuilderTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ extension AllTests.GitlabBuilderTests {
8282
)
8383
return try .created(jsonEncode: Gitlab.Builder.Response(webUrl: "http://web_url"))
8484
}
85+
$0.logger = .noop
8586
} operation: {
8687
// MUT
8788
_ = try await Gitlab.Builder.triggerBuild(buildId: buildId,
@@ -112,6 +113,7 @@ extension AllTests.GitlabBuilderTests {
112113
#expect(swiftVersion == "6.0")
113114
return try .created(jsonEncode: Gitlab.Builder.Response(webUrl: "http://web_url"))
114115
}
116+
$0.logger = .noop
115117
} operation: {
116118
// MUT
117119
_ = try await Gitlab.Builder.triggerBuild(buildId: .id0,

0 commit comments

Comments
 (0)