Skip to content

Commit

Permalink
testNotifyServerSubscribeAndNotifies fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Nov 20, 2023
1 parent 2c7da4a commit 54a8cb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Example/IntegrationTests/Push/NotifyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ final class NotifyTests: XCTestCase {
walletNotifyClientA.messagesPublisher
.sink { messages in
guard let newNotifyMessageRecord = messages.first else { return }
XCTAssertEqual(newNotifyMessageRecord.message, notifyMessage)
// ID's is not equal because server generates a new one
XCTAssertEqual(newNotifyMessageRecord.message.title, notifyMessage.title)
XCTAssertEqual(newNotifyMessageRecord.message.body, notifyMessage.body)
XCTAssertEqual(newNotifyMessageRecord.message.icon, notifyMessage.icon)
XCTAssertEqual(newNotifyMessageRecord.message.type, notifyMessage.type)
notifyMessageRecord = newNotifyMessageRecord
messageExpectation.fulfill()
}.store(in: &publishers)
Expand Down

0 comments on commit 54a8cb2

Please sign in to comment.