add test for addSndQueue

This commit is contained in:
Efim Poberezkin committed 2021-01-06 22:35:04 +04:00
1 parent 61092e8371
commit 94d0be5d27
3 files changed
+17 -2

No files matched your search

@@ -294,6 +294,7 @@ instance MonadUnliftIO m => MonadAgentStore SQLiteStore m where
>>= return . fmap (SomeConn SCSend . SendConnection connAlias)
Right (_, _) -> return $ Left SEBadConn
-- TODO make transactional
addSndQueue :: SQLiteStore -> ConnAlias -> SendQueue -> m (Either StoreError (Connection CDuplex))
addSndQueue st connAlias sndQueue = do
serverId <- upsertServer st (server (sndQueue :: SendQueue))