Inject a dummy AS to make the UT happy

This commit is contained in:
Till Faelligen 2023-11-24 21:15:51 +01:00
parent f683c7d644
commit aa23baa4c0
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -114,6 +114,11 @@ func TestLogin(t *testing.T) {
ctx := context.Background()
// Inject a dummy application service, so we have a "m.login.application_service"
// in the login flows
as := &config.ApplicationService{}
cfg.AppServiceAPI.Derived.ApplicationServices = []config.ApplicationService{*as}
t.Run("Supported log-in flows are returned", func(t *testing.T) {
req := test.NewRequest(t, http.MethodGet, "/_matrix/client/v3/login")
rec := httptest.NewRecorder()