From 54dd8d0ef33b4630b0411e84ec69e54bca325f6a Mon Sep 17 00:00:00 2001 From: Mumbi Francis Date: Wed, 15 Mar 2023 16:14:45 +0300 Subject: [PATCH] Fix missing font file error on integration test --- server/tests/federation/main_test.go | 1 + server/tests/workflows/main_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/server/tests/federation/main_test.go b/server/tests/federation/main_test.go index 8599a2a7a..f4b5ce6b3 100644 --- a/server/tests/federation/main_test.go +++ b/server/tests/federation/main_test.go @@ -55,6 +55,7 @@ func InitTestApp() { service.DefaultStore = app.Store eventbus.Set(eventBus) + app.Opt.Attachment.AvatarInitialsFontPath = "../../auth/assets/public/fonts/poppins/Poppins-Regular.ttf" return nil }) diff --git a/server/tests/workflows/main_test.go b/server/tests/workflows/main_test.go index 3a2273fc8..f16be4d7c 100644 --- a/server/tests/workflows/main_test.go +++ b/server/tests/workflows/main_test.go @@ -71,6 +71,7 @@ func TestMain(m *testing.M) { app.Opt.ActionLog.WorkflowFunctionsEnabled = true defStore = app.Store eventbus.Set(eventBus) + app.Opt.Attachment.AvatarInitialsFontPath = "../../auth/assets/public/fonts/poppins/Poppins-Regular.ttf" return nil })