aboutsummaryrefslogtreecommitdiff
path: root/clientapi/auth/user_interactive_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/auth/user_interactive_test.go')
-rw-r--r--clientapi/auth/user_interactive_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/clientapi/auth/user_interactive_test.go b/clientapi/auth/user_interactive_test.go
index d12652c0..47d1cad3 100644
--- a/clientapi/auth/user_interactive_test.go
+++ b/clientapi/auth/user_interactive_test.go
@@ -33,8 +33,11 @@ func getAccountByPassword(ctx context.Context, localpart, plaintextPassword stri
}
func setup() *UserInteractive {
- cfg := &config.Dendrite{}
- cfg.Matrix.ServerName = serverName
+ cfg := &config.ClientAPI{
+ Matrix: &config.Global{
+ ServerName: serverName,
+ },
+ }
return NewUserInteractive(getAccountByPassword, cfg)
}