diff --git a/Example/IntegrationTests/Relay/RelayClientEndToEndTests.swift b/Example/IntegrationTests/Relay/RelayClientEndToEndTests.swift index b7eecbcba..d95c463e2 100644 --- a/Example/IntegrationTests/Relay/RelayClientEndToEndTests.swift +++ b/Example/IntegrationTests/Relay/RelayClientEndToEndTests.swift @@ -91,7 +91,7 @@ final class RelayClientEndToEndTests: XCTestCase { expectationB.fulfill() } relayA.socketConnectionStatusPublisher.sink { _ in - relayA.publish(topic: randomTopic, payload: payloadA, onNetworkAcknowledge: { error in + relayA.publish(topic: randomTopic, payload: payloadA, tag: .unknown, onNetworkAcknowledge: { error in XCTAssertNil(error) }) relayA.subscribe(topic: randomTopic) { error in @@ -99,7 +99,7 @@ final class RelayClientEndToEndTests: XCTestCase { } }.store(in: &publishers) relayB.socketConnectionStatusPublisher.sink { _ in - relayB.publish(topic: randomTopic, payload: payloadB, onNetworkAcknowledge: { error in + relayB.publish(topic: randomTopic, payload: payloadB, tag: .unknown, onNetworkAcknowledge: { error in XCTAssertNil(error) }) relayB.subscribe(topic: randomTopic) { error in diff --git a/Tests/RelayerTests/IridiumRelayTests.swift b/Tests/RelayerTests/IridiumRelayTests.swift index d52b4fed4..c9ba34185 100644 --- a/Tests/RelayerTests/IridiumRelayTests.swift +++ b/Tests/RelayerTests/IridiumRelayTests.swift @@ -62,7 +62,7 @@ class IridiumRelayTests: XCTestCase { func testSubscriptionRequestDeliveredOnce() { let expectation = expectation(description: "Request duplicate not delivered") let subscriptionParams = RelayJSONRPC.SubscriptionParams(id: "sub_id", data: RelayJSONRPC.SubscriptionData(topic: "topic", message: "message")) - let subscriptionRequest = JSONRPCRequest(id: 12345, method: RelayJSONRPC.Method.subscription.rawValue, params: subscriptionParams) + let subscriptionRequest = JSONRPCRequest(id: 12345, method: RelayJSONRPC.Method.subscription.method, params: subscriptionParams) iridiumRelay.onMessage = { _, _ in expectation.fulfill() }