Skip to content

Commit

Permalink
rename listener
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Dec 5, 2023
1 parent 0c47776 commit 30bf202
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DXFeedFrameworkTests/DXConnectionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -94,7 +93,7 @@ final class DXConnectionTest: XCTestCase {
self.callback(events)
}

init(overrides: (Listener) -> Listener) {
init(overrides: (DXConnectionTestListener) -> DXConnectionTestListener) {
_ = overrides(self)
}
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 30bf202

Please sign in to comment.