update unit test

This commit is contained in:
Ryan Zhao 2023-08-14 14:39:29 +10:00
parent cc9504bf40
commit a7a19abccf
2 changed files with 3 additions and 4 deletions

View File

@ -139,7 +139,7 @@ extension MessageReceiver {
).inserted(db)
}
internal static func updateDisappearingMessagesConfigurationIfNeeded(
public static func updateDisappearingMessagesConfigurationIfNeeded(
_ db: Database,
threadId: String,
threadVariant: SessionThread.Variant,

View File

@ -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
)
}