Skip to content

Commit

Permalink
Integration tests repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Jun 22, 2023
1 parent ad30cfa commit b4c4f06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Example/IntegrationTests/Push/PushTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ final class PushTests: XCTestCase {

let uri = try! await dappPairingClient.create()
try! await walletPairingClient.pair(uri: uri)
try! await walletPushClient.register(account: account, onSign: sign)
try! await dappPushClient.propose(account: account, topic: uri.topic)

walletPushClient.requestPublisher.sink { [unowned self] (id, _, _) in
Expand Down Expand Up @@ -173,6 +174,7 @@ final class PushTests: XCTestCase {
let expectation = expectation(description: "expects to delete push subscription")
let uri = try! await dappPairingClient.create()
try! await walletPairingClient.pair(uri: uri)
try! await walletPushClient.register(account: account, onSign: sign)
try! await dappPushClient.propose(account: account, topic: uri.topic)
var subscriptionTopic: String!

Expand Down Expand Up @@ -201,6 +203,7 @@ final class PushTests: XCTestCase {
let expectation = expectation(description: "expects to create and update push subscription")
let metadata = AppMetadata(name: "GM Dapp", description: "", url: "https://gm-dapp-xi.vercel.app/", icons: [])
let updateScope: Set<String> = ["alerts"]
try! await walletPushClient.register(account: account, onSign: sign)
try! await walletPushClient.subscribe(metadata: metadata, account: account, onSign: sign)
walletPushClient.subscriptionsPublisher
.first()
Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnectPush/PushStorageIdntifiers.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

enum PushStorageIdntifiers {
static let pushSubscription = "com.walletconnect.push.subscription"
static let pushSubscription = "com.walletconnect.notify.pushSubscription"

static let pushMessagesRecords = "com.walletconnect.sdk.pushMessagesRecords"
static let dappsMetadataStore = "com.walletconnect.sdk.dappsMetadataStore"
Expand Down

0 comments on commit b4c4f06

Please sign in to comment.