mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 15:03:09 -06:00
Inject a dummy AS to make the UT happy
This commit is contained in:
parent
f683c7d644
commit
aa23baa4c0
|
|
@ -114,6 +114,11 @@ func TestLogin(t *testing.T) {
|
||||||
|
|
||||||
ctx := context.Background()
|
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) {
|
t.Run("Supported log-in flows are returned", func(t *testing.T) {
|
||||||
req := test.NewRequest(t, http.MethodGet, "/_matrix/client/v3/login")
|
req := test.NewRequest(t, http.MethodGet, "/_matrix/client/v3/login")
|
||||||
rec := httptest.NewRecorder()
|
rec := httptest.NewRecorder()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue