diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-04-27 15:05:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 15:05:49 +0200 |
commit | f023cdf8c42cc1a4bb850b478dbbf7d901b5e1bd (patch) | |
tree | 5698494b5438a721976a1f685dcd29301538a7d7 /userapi/userapi_test.go | |
parent | d7cc187ec00410b949ffae1625835f8ac9f36c29 (diff) |
Add UserAPI storage tests (#2384)
* Add tests for parts of the userapi storage
* Add tests for keybackup
* Add LoginToken tests
* Add OpenID tests
* Add profile tests
* Add pusher tests
* Add ThreePID tests
* Add notification tests
* Add more device tests, fix numeric localpart query
* Fix failing CI
* Fix numeric local part query
Diffstat (limited to 'userapi/userapi_test.go')
-rw-r--r-- | userapi/userapi_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/userapi_test.go b/userapi/userapi_test.go index 8c3608bd..076b4f3c 100644 --- a/userapi/userapi_test.go +++ b/userapi/userapi_test.go @@ -52,7 +52,7 @@ func MustMakeInternalAPI(t *testing.T, opts apiTestOpts) (api.UserInternalAPI, s MaxOpenConnections: 1, MaxIdleConnections: 1, } - accountDB, err := storage.NewDatabase(dbopts, serverName, bcrypt.MinCost, config.DefaultOpenIDTokenLifetimeMS, opts.loginTokenLifetime, "") + accountDB, err := storage.NewUserAPIDatabase(dbopts, serverName, bcrypt.MinCost, config.DefaultOpenIDTokenLifetimeMS, opts.loginTokenLifetime, "") if err != nil { t.Fatalf("failed to create account DB: %s", err) } |