Skip to content

Commit

Permalink
testHandleSessionProposeResponse MainActor removed
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Aug 8, 2022
1 parent a7d4d88 commit 345855a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class NetworkingInteractorMock: NetworkInteracting {
}

func subscribe(topic: String) {
didCallSubscribe = true
subscriptions.append(topic)
didCallSubscribe = true
}

func unsubscribe(topic: String) {
Expand Down
4 changes: 1 addition & 3 deletions Tests/WalletConnectSignTests/PairingEngineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ final class PairingEngineTests: XCTestCase {
XCTAssertEqual(publishTopic, topicA)
}

// Flaky test: asserting `topicB` and `sessionTopic` failed once, couldn't reproduce
@MainActor
func testHandleSessionProposeResponse() async {
let uri = try! await engine.create()
let pairing = storageMock.getPairing(forTopic: uri.topic)!
Expand Down Expand Up @@ -121,7 +119,7 @@ final class PairingEngineTests: XCTestCase {

XCTAssertTrue(networkingInteractor.didCallSubscribe)
XCTAssert(storedPairing.active)
// XCTAssertEqual(topicB, sessionTopic, "Responder engine calls back with session topic")
XCTAssertEqual(topicB, sessionTopic, "Responder engine calls back with session topic")
}

func testSessionProposeError() async {
Expand Down

0 comments on commit 345855a

Please sign in to comment.