mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-15 19:10:04 +00:00
tests: generate MsgId for ntf store test
This commit is contained in:
@@ -685,7 +685,7 @@ testExpireIdleQueues = do
|
||||
|
||||
mkMsgNtf :: TVar ChaChaDRG -> Int64 -> IO MsgNtf
|
||||
mkMsgNtf g ts = do
|
||||
ntfMsgId <- atomically $ C.randomBytes 24 g
|
||||
ntfMsgId <- atomically $ randomMsgId 24 g
|
||||
ntfNonce <- atomically $ C.randomCbNonce g
|
||||
pure MsgNtf {ntfMsgId, ntfTs = MkSystemTime ts 0, ntfNonce, ntfEncMeta = "meta"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user