]> git.giacomolli.uk - onechat/blobdiff - whatsapp_route_test.go
Receive images in WhatsApp batches
[onechat] / whatsapp_route_test.go
index 92c9cf376d64b5c705703c1fdfbf89a403678215..9c855c9935b4b61d3a4e9da64acad8d6e2481221 100644 (file)
@@ -393,7 +393,7 @@ func whatsappRouteTestInbox(t *testing.T, dir string) *WhatsAppInbox {
        state, err := openWhatsAppState(filepath.Join(dir, whatsappDirName, whatsappStateFileName), whatsappBatchQuiet, whatsappBatchWindow)
        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) {