Skip to content

Commit 26e5214

Browse files
committed
Disable 7 tests that are suspected to cause hangs/failures
1 parent e70868f commit 26e5214

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Tests/AppTests/AnalyzerTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ extension AllTests.AnalyzerTests {
612612
}
613613
}
614614

615-
@Test func getIncomingVersions_no_default_branch() async throws {
615+
@Test(.disabled()) func getIncomingVersions_no_default_branch() async throws {
616616
try await withSPIApp { app in
617617
// setup
618618
// saving Package without Repository means it has no default branch
@@ -672,7 +672,7 @@ extension AllTests.AnalyzerTests {
672672
}
673673
}
674674

675-
@Test func mergeReleaseInfo() async throws {
675+
@Test(.disabled()) func mergeReleaseInfo() async throws {
676676
// setup
677677
try await withSPIApp { app in
678678
let pkg = Package(id: .id0, url: "1".asGithubUrl.url)
@@ -894,7 +894,7 @@ extension AllTests.AnalyzerTests {
894894
}
895895
}
896896

897-
@Test func updatePackages() async throws {
897+
@Test(.disabled()) func updatePackages() async throws {
898898
try await withSPIApp { app in
899899
// setup
900900
let packages = try await savePackages(on: app.db, ["1", "2"].asURLs)

Tests/AppTests/AnalyzerVersionThrottlingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extension AllTests.AnalyzerVersionThrottlingTests {
105105
}
106106
}
107107

108-
@Test func throttle_branch_ref_change() async throws {
108+
@Test(.disabled()) func throttle_branch_ref_change() async throws {
109109
// Test behaviour when changing default branch names
110110
// Changed to return [new] to avoid branch renames causing 404s
111111
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2217
@@ -257,7 +257,7 @@ extension AllTests.AnalyzerVersionThrottlingTests {
257257
}
258258
}
259259

260-
@Test func progression() async throws {
260+
@Test(.disabled()) func progression() async throws {
261261
// Simulate progression through a time span of branch and tag updates
262262
// and checking the diffs are as expected.
263263
try await withSPIApp { app in

Tests/AppTests/ApiTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension AllTests.ApiTests {
3232
}
3333
}
3434

35-
@Test func search_noQuery() async throws {
35+
@Test(.disabled()) func search_noQuery() async throws {
3636
try await withDependencies {
3737
$0.environment.apiSigningKey = { "secret" }
3838
$0.httpClient.postPlausibleEvent = App.HTTPClient.noop
@@ -416,7 +416,7 @@ extension AllTests.ApiTests {
416416
}
417417
}
418418

419-
@Test func post_buildReport_large() async throws {
419+
@Test(.disabled()) func post_buildReport_large() async throws {
420420
// Ensure we can handle large build reports
421421
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2825
422422
try await withDependencies {

0 commit comments

Comments
 (0)