From d371131ad5dc1fda9e87882e952643d5d496bcf7 Mon Sep 17 00:00:00 2001 From: Islam <2553451+qalandarov@users.noreply.github.com> Date: Thu, 9 Oct 2025 22:47:01 +0100 Subject: [PATCH] Remove `MockBluetoothMeshService` (#777) --- bitchatTests/Integration/IntegrationTests.swift | 4 ++-- bitchatTests/Mocks/MockBluetoothMeshService.swift | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 bitchatTests/Mocks/MockBluetoothMeshService.swift diff --git a/bitchatTests/Integration/IntegrationTests.swift b/bitchatTests/Integration/IntegrationTests.swift index 5e0ec7bf..8d615640 100644 --- a/bitchatTests/Integration/IntegrationTests.swift +++ b/bitchatTests/Integration/IntegrationTests.swift @@ -12,7 +12,7 @@ import CryptoKit final class IntegrationTests: XCTestCase { - var nodes: [String: MockBluetoothMeshService] = [:] + var nodes: [String: MockBLEService] = [:] var noiseManagers: [String: NoiseSessionManager] = [:] private var mockKeychain: MockKeychain! @@ -588,7 +588,7 @@ final class IntegrationTests: XCTestCase { // MARK: - Helper Methods private func createNode(_ name: String, peerID: PeerID) { - let node = MockBluetoothMeshService() + let node = MockBLEService() node.myPeerID = peerID node.mockNickname = name nodes[name] = node diff --git a/bitchatTests/Mocks/MockBluetoothMeshService.swift b/bitchatTests/Mocks/MockBluetoothMeshService.swift deleted file mode 100644 index 7cbe434e..00000000 --- a/bitchatTests/Mocks/MockBluetoothMeshService.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// MockBluetoothMeshService.swift -// bitchatTests -// -// This is free and unencumbered software released into the public domain. -// For more information, see -// - -import Foundation -import CoreBluetooth -@testable import bitchat - -// Compatibility wrapper for old tests - please use MockBLEService directly -typealias MockBluetoothMeshService = MockBLEService