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

@ -445,8 +445,6 @@ func TestAccountData(t *testing.T) {
func TestDevices(t *testing.T) {
ctx := context.Background()
dupeAccessToken := util.RandomString(8)
displayName := "testing"
creationTests := []struct {
@ -468,15 +466,6 @@ func TestDevices(t *testing.T) {
name: "explicit local user",
inputData: &api.PerformDeviceCreationRequest{Localpart: "test2", ServerName: "test", AccessToken: util.RandomString(8), NoDeviceListUpdate: true},
},
{
name: "dupe token - ok",
inputData: &api.PerformDeviceCreationRequest{Localpart: "test3", ServerName: "test", AccessToken: dupeAccessToken, NoDeviceListUpdate: true},
},
{
name: "dupe token - not ok",
inputData: &api.PerformDeviceCreationRequest{Localpart: "test3", ServerName: "test", AccessToken: dupeAccessToken, NoDeviceListUpdate: true},
wantErr: true,
},
{
name: "test3 second device", // used to test deletion later
inputData: &api.PerformDeviceCreationRequest{Localpart: "test3", ServerName: "test", AccessToken: util.RandomString(8), NoDeviceListUpdate: true},