mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix Cannot explicitly specialize instance method 'deferFulfillment(_:timeout:message:until:) warning
This commit is contained in:
committed by
Stefan Ceriu
parent
8bff9ecad3
commit
cedb2936d0
@@ -95,7 +95,7 @@ extension XCTestCase {
|
|||||||
timeout: TimeInterval = 10,
|
timeout: TimeInterval = 10,
|
||||||
message: String? = nil) -> DeferredFulfillment<P.Output> {
|
message: String? = nil) -> DeferredFulfillment<P.Output> {
|
||||||
var expectedOrder = transitionValues
|
var expectedOrder = transitionValues
|
||||||
let deferred = deferFulfillment<P>(publisher, timeout: timeout, message: message) { value in
|
let deferred = deferFulfillment(publisher, timeout: timeout, message: message) { value in
|
||||||
let receivedValue = value[keyPath: keyPath]
|
let receivedValue = value[keyPath: keyPath]
|
||||||
if let index = expectedOrder.firstIndex(where: { $0 == receivedValue }), index == 0 {
|
if let index = expectedOrder.firstIndex(where: { $0 == receivedValue }), index == 0 {
|
||||||
expectedOrder.remove(at: index)
|
expectedOrder.remove(at: index)
|
||||||
|
|||||||
Reference in New Issue
Block a user