From 30bf2020807de12cd1b65df81ab550943a935359 Mon Sep 17 00:00:00 2001 From: AKosylo Date: Tue, 5 Dec 2023 10:39:41 +0100 Subject: [PATCH] rename listener --- DXFeedFrameworkTests/DXConnectionTest.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DXFeedFrameworkTests/DXConnectionTest.swift b/DXFeedFrameworkTests/DXConnectionTest.swift index 71942d474..9670b6a6b 100644 --- a/DXFeedFrameworkTests/DXConnectionTest.swift +++ b/DXFeedFrameworkTests/DXConnectionTest.swift @@ -79,9 +79,8 @@ final class DXConnectionTest: XCTestCase { } func testQuote() throws { - class Listener: DXEventListener, Hashable { - - static func == (lhs: Listener, rhs: Listener) -> Bool { + class DXConnectionTestListener: DXEventListener, Hashable { + static func == (lhs: DXConnectionTestListener, rhs: DXConnectionTestListener) -> Bool { lhs === rhs } @@ -94,7 +93,7 @@ final class DXConnectionTest: XCTestCase { self.callback(events) } - init(overrides: (Listener) -> Listener) { + init(overrides: (DXConnectionTestListener) -> DXConnectionTestListener) { _ = overrides(self) } } @@ -107,7 +106,7 @@ final class DXConnectionTest: XCTestCase { let subscription = try endpoint .getFeed()? .createSubscription(EventCode.trade) - let listener = Listener { listener in + let listener = DXConnectionTestListener { listener in listener.callback = { events in print(events) }