]> git.giacomolli.uk - onechat/blobdiff - whatsapp_route_test.go
Send stored images to WhatsApp chats
[onechat] / whatsapp_route_test.go
index 92c9cf376d64b5c705703c1fdfbf89a403678215..c6dbf447fee99a9cf7fc1d259c4689b091b212d2 100644 (file)
@@ -390,10 +390,10 @@ func TestRoutedWhatsAppQueueFailureKeepsTheInboxBatch(t *testing.T) {
 func whatsappRouteTestInbox(t *testing.T, dir string) *WhatsAppInbox {
        t.Helper()
 
 func whatsappRouteTestInbox(t *testing.T, dir string) *WhatsAppInbox {
        t.Helper()
 
-       state, err := openWhatsAppState(filepath.Join(dir, whatsappDirName, whatsappStateFileName), whatsappBatchQuiet, whatsappBatchWindow)
+       state, err := openWhatsAppState(filepath.Join(dir, whatsappDirName, whatsappStateFileName))
        require.NoError(t, err)
 
        require.NoError(t, err)
 
-       return newWhatsAppInbox(state, newTestClock().Now, newWhatsAppGroups(discardLog()))
+       return newWhatsAppInbox(state, newTestClock().Now, newWhatsAppGroups(discardLog()), &ImageStore{dir: filepath.Join(dir, imageDirName)}, discardLog())
 }
 
 func whatsappRouteTestAdd(t *testing.T, inbox *WhatsAppInbox, chat WhatsAppChat, text string) {
 }
 
 func whatsappRouteTestAdd(t *testing.T, inbox *WhatsAppInbox, chat WhatsAppChat, text string) {