X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/effd32b0f2e4d146b219b1727601b0b7f6593638..3cdbd017da9ae7a7045f4272f16d4b262fd01c79:/whatsapp_route_test.go?ds=sidebyside diff --git a/whatsapp_route_test.go b/whatsapp_route_test.go index 92c9cf3..c6dbf44 100644 --- a/whatsapp_route_test.go +++ b/whatsapp_route_test.go @@ -390,10 +390,10 @@ func TestRoutedWhatsAppQueueFailureKeepsTheInboxBatch(t *testing.T) { 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) - 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) {