From 0535ce519f143d882af3c9bf7374d010d14a4454 Mon Sep 17 00:00:00 2001 From: Anthony Miller Date: Tue, 19 Sep 2023 11:51:39 -0700 Subject: [PATCH] Fix more Swift 5.9 build errors --- Tests/ApolloTests/OperationMessageMatchers.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/ApolloTests/OperationMessageMatchers.swift b/Tests/ApolloTests/OperationMessageMatchers.swift index d77543f10..ab465fe8c 100644 --- a/Tests/ApolloTests/OperationMessageMatchers.swift +++ b/Tests/ApolloTests/OperationMessageMatchers.swift @@ -4,8 +4,8 @@ import Apollo @testable import ApolloWebSocket import ApolloAPI -public func equalMessage(payload: JSONEncodableDictionary? = nil, id: String? = nil, type: OperationMessage.Types) -> Predicate { - return Predicate.define { actualExpression in +public func equalMessage(payload: JSONEncodableDictionary? = nil, id: String? = nil, type: OperationMessage.Types) -> Nimble.Predicate { + return Nimble.Predicate.define { actualExpression in guard let actualValue = try actualExpression.evaluate() else { return PredicateResult( status: .fail,