Skip to content

Commit defa126

Browse files
Merge pull request #3663 from SwiftPackageIndex/issue-3655-swift-testing-part-2
Issue 3655 swift testing part 2
2 parents c7bcde5 + c3664e1 commit defa126

File tree

6 files changed

+226
-160
lines changed

6 files changed

+226
-160
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Install unzip
5555
run: apt-get update && apt-get install -y unzip
5656
- name: Run tests
57-
run: cp .env.testing.template .env.testing && make test
57+
run: cp .env.testing.template .env.testing && make test-plain
5858
env:
5959
COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
6060
DATABASE_HOST: postgres

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build:
3333
run:
3434
swift run
3535

36+
test-plain:
37+
swift test --disable-automatic-resolution --sanitize=thread --no-parallel
38+
3639
test: xcbeautify
3740
set -o pipefail \
3841
&& swift test --disable-automatic-resolution --sanitize=thread \

Sources/App/Commands/Analyze.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ extension Analyze {
180180
// 2024-10-05 sas: We need to explicitly weave dependencies into the `transaction` closure, because escaping closures strip them.
181181
// https://github.com/pointfreeco/swift-dependencies/discussions/283#discussioncomment-10846172
182182
// This might not be needed in Vapor 5 / FluentKit 2
183-
// TODO: verify this is still needed once we upgrade to Vapor 5 / FluentKit 2
183+
// TODO: verify if this is still needed once we upgrade to Vapor 5 / FluentKit 2
184184
try await withEscapedDependencies { dependencies in
185185
try await database.transaction { tx in
186186
try await dependencies.yield {

0 commit comments

Comments
 (0)