Skip to content

Commit

Permalink
Update CombineSchedulers
Browse files Browse the repository at this point in the history
  • Loading branch information
emixb authored and freak4pc committed Jun 17, 2022
1 parent cd120ce commit 1efb10d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
13 changes: 11 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@
"repositoryURL": "https://github.com/pointfreeco/combine-schedulers",
"state": {
"branch": null,
"revision": "ae2f434e81017bb7de02c168fb0bde83cd8370c1",
"version": "0.3.1"
"revision": "4cf088c29a20f52be0f2ca54992b492c54e0076b",
"version": "0.5.3"
}
},
{
"package": "xctest-dynamic-overlay",
"repositoryURL": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state": {
"branch": null,
"revision": "50a70a9d3583fe228ce672e8923010c8df2deddd",
"version": "0.2.1"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import PackageDescription
let package = Package(
name: "CombineExt",
platforms: [
.iOS(.v10), .tvOS(.v10), .macOS(.v10_12), .watchOS(.v3)
.iOS(.v13), .tvOS(.v10), .macOS(.v10_12), .watchOS(.v3)
],
products: [
.library(name: "CombineExt", targets: ["CombineExt"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.1.2"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.5.3"),
],
targets: [
.target(name: "CombineExt", dependencies: [], path: "Sources"),
Expand Down
2 changes: 1 addition & 1 deletion Tests/FlatMapLatestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FlatMapLatestTests: XCTestCase {
var values = 0
var cancellations = 0
var completed = false
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

func publish() -> AnyPublisher<String, Never> {
Publishers.Timer(every: 0.5, scheduler: scheduler)
Expand Down
12 changes: 6 additions & 6 deletions Tests/PrefixDurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class PrefixDurationTests: XCTestCase {
private var cancellable: AnyCancellable!

func testValueEventInWindow() {
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

let subject = PassthroughSubject<Int, Never>()

Expand Down Expand Up @@ -45,7 +45,7 @@ final class PrefixDurationTests: XCTestCase {

func testMultipleEventsInAndOutOfWindow() {
let subject = PassthroughSubject<Int, Never>()
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

var results = [Int]()
var completions = [Subscribers.Completion<Never>]()
Expand Down Expand Up @@ -79,7 +79,7 @@ final class PrefixDurationTests: XCTestCase {

func testNoValueEventsInWindow() {
let subject = PassthroughSubject<Int, Never>()
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

var results = [Int]()
var completions = [Subscribers.Completion<Never>]()
Expand All @@ -100,7 +100,7 @@ final class PrefixDurationTests: XCTestCase {

func testFinishedInWindow() {
let subject = PassthroughSubject<Int, Never>()
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

var results = [Subscribers.Completion<Never>]()

Expand All @@ -124,7 +124,7 @@ final class PrefixDurationTests: XCTestCase {

func testErrorInWindow() {
let subject = PassthroughSubject<Int, AnError>()
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

var results = [Subscribers.Completion<AnError>]()

Expand All @@ -144,7 +144,7 @@ final class PrefixDurationTests: XCTestCase {

func testErrorEventOutsideWindowDoesntAffectFinishEvent() {
let subject = PassthroughSubject<Int, AnError>()
let scheduler = DispatchQueue.testScheduler
let scheduler = DispatchQueue.test

var results = [Subscribers.Completion<AnError>]()

Expand Down

0 comments on commit 1efb10d

Please sign in to comment.