update unit test
This commit is contained in:
parent
cc9504bf40
commit
a7a19abccf
|
@ -139,7 +139,7 @@ extension MessageReceiver {
|
|||
).inserted(db)
|
||||
}
|
||||
|
||||
internal static func updateDisappearingMessagesConfigurationIfNeeded(
|
||||
public static func updateDisappearingMessagesConfigurationIfNeeded(
|
||||
_ db: Database,
|
||||
threadId: String,
|
||||
threadVariant: SessionThread.Variant,
|
||||
|
|
|
@ -107,13 +107,12 @@ class MessageReceiverDisappearingMessagesSpec: QuickSpec {
|
|||
// MARK: -- updates the local config properly
|
||||
it("updates the local config properly") {
|
||||
mockStorage.write { db in
|
||||
try MessageReceiver.handle(
|
||||
try MessageReceiver.updateDisappearingMessagesConfigurationIfNeeded(
|
||||
db,
|
||||
threadId: "TestId",
|
||||
threadVariant: .contact,
|
||||
message: mockMessage,
|
||||
serverExpirationTimestamp: nil,
|
||||
associatedWithProto: mockProto
|
||||
proto: mockProto
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue