mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-14 13:22:26 +03:00
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:
parent
1afe2b90ea
commit
244021dc05
2 changed files with 2 additions and 11 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue