Skip to content

Commit 9ab8874

Browse files
authored
Use postgres-migrations repo (#30)
* Use postgres-migrations repo * Fix testErrorRetryCount after changes in swift-jobs
1 parent 81119b9 commit 9ab8874

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ let package = Package(
1111
dependencies: [
1212
// TODO: use a released version of swift-jobs
1313
.package(url: "https://github.com/hummingbird-project/swift-jobs.git", branch: "main"),
14-
.package(url: "https://github.com/hummingbird-project/hummingbird-postgres.git", from: "0.6.0"),
14+
.package(url: "https://github.com/hummingbird-project/postgres-migrations.git", from: "0.1.0"),
1515
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.25.0"),
1616
],
1717
targets: [
1818
.target(
1919
name: "JobsPostgres",
2020
dependencies: [
21-
.product(name: "PostgresMigrations", package: "hummingbird-postgres"),
21+
.product(name: "PostgresMigrations", package: "postgres-migrations"),
2222
.product(name: "Jobs", package: "swift-jobs"),
2323
.product(name: "PostgresNIO", package: "postgres-nio"),
2424
]

Tests/JobsPostgresTests/JobsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ final class JobsTests: XCTestCase {
407407
struct TestParameters: JobParameters {
408408
static let jobName = "testErrorRetryCount"
409409
}
410-
let expectation = XCTestExpectation(description: "TestJob.execute was called", expectedFulfillmentCount: 4)
410+
let expectation = XCTestExpectation(description: "TestJob.execute was called", expectedFulfillmentCount: 3)
411411
struct FailedError: Error {}
412412
try await self.testJobQueue(numWorkers: 1) { jobQueue in
413413
jobQueue.registerJob(

0 commit comments

Comments
 (0)