Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some warnings in the tests #1516

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions NosTests/Service/Relay/RelaySubscriptionManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class RelaySubscriptionManagerTests: XCTestCase {
await subject.openSockets()

// Assert
var connections = await subject.socketConnections
let connections = await subject.socketConnections
XCTAssertEqual(connections.count, 3)
connections.values.forEach { XCTAssertEqual($0.state, .connecting) }
}
Expand All @@ -46,7 +46,7 @@ final class RelaySubscriptionManagerTests: XCTestCase {
await subject.openSockets()

// Assert
var connections = await subject.socketConnections
let connections = await subject.socketConnections
XCTAssertEqual(connections.count, 3)
connections.values.forEach { XCTAssertEqual($0.state, .connecting) }
}
Expand All @@ -58,7 +58,7 @@ final class RelaySubscriptionManagerTests: XCTestCase {
_ = await subject.queueSubscription(with: Filter(), to: relayThreeURL)
await subject.openSockets()

var connections = await subject.socketConnections
let connections = await subject.socketConnections
let connection = connections[relayThreeURL]
connection?.state = .disconnected

Expand Down
Loading