From ced5dfb3d20f7ebc596bcd961c177477ac613660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=CC=A7ois=20Benaiteau?= Date: Mon, 13 Jan 2025 17:27:59 +0100 Subject: [PATCH] fix --- .../Sourcery/generated/AutoMockable.generated.swift | 2 +- .../ResolveOneOnOneConversationsUseCaseTests.swift | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/WireDomain/Sources/WireDomainSupport/Sourcery/generated/AutoMockable.generated.swift b/WireDomain/Sources/WireDomainSupport/Sourcery/generated/AutoMockable.generated.swift index 2d2a6e03de..eb46951aa4 100644 --- a/WireDomain/Sources/WireDomainSupport/Sourcery/generated/AutoMockable.generated.swift +++ b/WireDomain/Sources/WireDomainSupport/Sourcery/generated/AutoMockable.generated.swift @@ -1100,7 +1100,7 @@ public class MockConversationRepositoryProtocol: ConversationRepositoryProtocol guard let mock = addParticipantsSenderDateConversationIDConversationDomain_MockMethod else { fatalError("no mock for `addParticipantsSenderDateConversationIDConversationDomain`") } - + try await mock(participants, sender, date, conversationID, conversationDomain) } diff --git a/wire-ios-sync-engine/Tests/Source/Use cases/ResolveOneOnOneConversationsUseCaseTests.swift b/wire-ios-sync-engine/Tests/Source/Use cases/ResolveOneOnOneConversationsUseCaseTests.swift index 28fe27b3bc..c42aaaf8a3 100644 --- a/wire-ios-sync-engine/Tests/Source/Use cases/ResolveOneOnOneConversationsUseCaseTests.swift +++ b/wire-ios-sync-engine/Tests/Source/Use cases/ResolveOneOnOneConversationsUseCaseTests.swift @@ -46,7 +46,7 @@ final class ResolveOneOnOneConversationsUseCaseTests: XCTestCase { mockOneOnOneResolver = MockOneOnOneResolverInterface() mockPullSelfUserClients = MockPullSelfUserClientsProtocol() mockPullSelfUserClients.pullSelfClients_MockMethod = {} - + sut = ResolveOneOnOneConversationsUseCase( context: syncContext, supportedProtocolService: mockSupportedProtocolService, @@ -75,15 +75,17 @@ final class ResolveOneOnOneConversationsUseCaseTests: XCTestCase { // GIVEN await syncContext.perform { [self] in let selfUser = ZMUser.selfUser(in: syncContext) - selfUser.supportedProtocols = [.proteus] - mockSupportedProtocolService.calculateSupportedProtocols_MockValue = [.mls, .proteus] + selfUser.supportedProtocols = [.mls] + mockSupportedProtocolService.calculateSupportedProtocols_MockValue = [.mls] } + mockOneOnOneResolver.resolveAllOneOnOneConversationsIn_MockMethod = { _ in } // WHEN try await sut.invoke() // THEN XCTAssertEqual(mockPullSelfUserClients.pullSelfClients_Invocations.count, 1) + XCTAssertEqual(mockOneOnOneResolver.resolveAllOneOnOneConversationsIn_Invocations.count, 1) }