deleted test cases TestDevices/sqlite/dupe_token

these testcases are irrelevant msc3861 because access tokens are
supposed to come from mas and access_token field is not used at all
This commit is contained in:
Roman Isaev 2025-01-09 02:06:37 +00:00
parent 1afe2b90ea
commit 244021dc05
No known key found for this signature in database
GPG key ID: 7BE2B6A6C89AEC7F
2 changed files with 2 additions and 11 deletions

View file

@ -306,6 +306,8 @@ func (a *UserInternalAPI) PerformDeviceCreation(ctx context.Context, req *api.Pe
"device_id": req.DeviceID,
"display_name": req.DeviceDisplayName,
}).Info("PerformDeviceCreation")
// TODO: Since we have deleted access_token's unique constraint from the db,
// we probably should check its uniqueness if msc3861 is disabled
dev, err := a.DB.CreateDevice(ctx, req.Localpart, serverName, req.DeviceID, req.AccessToken, req.DeviceDisplayName, req.IPAddr, req.UserAgent)
if err != nil {
return err