From f7ad107bcef603ff2bec123f3ce3913635fbd91c Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 31 Mar 2025 15:37:08 +0100 Subject: [PATCH 1/2] Use postgres-migrations repo --- Package.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 99858fb..e567f69 100644 --- a/Package.swift +++ b/Package.swift @@ -11,14 +11,14 @@ let package = Package( dependencies: [ // TODO: use a released version of swift-jobs .package(url: "https://github.com/hummingbird-project/swift-jobs.git", branch: "main"), - .package(url: "https://github.com/hummingbird-project/hummingbird-postgres.git", from: "0.6.0"), + .package(url: "https://github.com/hummingbird-project/postgres-migrations.git", from: "0.1.0"), .package(url: "https://github.com/vapor/postgres-nio.git", from: "1.25.0"), ], targets: [ .target( name: "JobsPostgres", dependencies: [ - .product(name: "PostgresMigrations", package: "hummingbird-postgres"), + .product(name: "PostgresMigrations", package: "postgres-migrations"), .product(name: "Jobs", package: "swift-jobs"), .product(name: "PostgresNIO", package: "postgres-nio"), ] From 42fa56d098c47ff424d11aa843439bee2db495a0 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 31 Mar 2025 15:45:17 +0100 Subject: [PATCH 2/2] Fix testErrorRetryCount after changes in swift-jobs --- Tests/JobsPostgresTests/JobsTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/JobsPostgresTests/JobsTests.swift b/Tests/JobsPostgresTests/JobsTests.swift index 20ea92f..9265742 100644 --- a/Tests/JobsPostgresTests/JobsTests.swift +++ b/Tests/JobsPostgresTests/JobsTests.swift @@ -407,7 +407,7 @@ final class JobsTests: XCTestCase { struct TestParameters: JobParameters { static let jobName = "testErrorRetryCount" } - let expectation = XCTestExpectation(description: "TestJob.execute was called", expectedFulfillmentCount: 4) + let expectation = XCTestExpectation(description: "TestJob.execute was called", expectedFulfillmentCount: 3) struct FailedError: Error {} try await self.testJobQueue(numWorkers: 1) { jobQueue in jobQueue.registerJob(