Skip to content

Commit 3d2457f

Browse files
committed
Use main branch and updated tests
1 parent 22b89c5 commit 3d2457f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
],
1111
dependencies: [
1212
// TODO: use a released version of swift-jobs
13-
.package(url: "https://github.com/thoven87/swift-jobs.git", branch: "resumable-cancellable-jobs"),
13+
.package(url: "https://github.com/hummingbird-project/swift-jobs.git", branch: "main"),
1414
.package(url: "https://github.com/hummingbird-project/hummingbird-postgres.git", branch: "main"),
1515
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.25.0"),
1616
],

Tests/JobsPostgresTests/JobsTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -762,17 +762,17 @@ final class JobsTests: XCTestCase {
762762
expectation.fulfill()
763763
}
764764

765-
try await queue.push(
766-
TestParameters(value: 2025),
765+
let cancellableJob = try await queue.push(
766+
TestParameters(value: 42),
767767
options: .init(
768-
priority: .highest()
768+
priority: .lower()
769769
)
770770
)
771771

772-
let cancellableJob = try await queue.push(
773-
TestParameters(value: 42),
772+
try await queue.push(
773+
TestParameters(value: 2025),
774774
options: .init(
775-
priority: .lower()
775+
priority: .highest()
776776
)
777777
)
778778

0 commit comments

Comments
 (0)