Skip to content

Commit 779a7ed

Browse files
committed
more test fixes
1 parent 27f7a5e commit 779a7ed

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

clientapi/routing/key_crosssigning_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import (
1010
"strings"
1111
"testing"
1212

13-
"github.com/element-hq/dendrite/userapi/types"
14-
1513
"github.com/element-hq/dendrite/setup/config"
1614
"github.com/element-hq/dendrite/test"
1715
"github.com/element-hq/dendrite/test/testrig"
@@ -134,9 +132,7 @@ func Test_UploadCrossSigningDeviceKeys_Unauthorised(t *testing.T) {
134132
},
135133
queryMasterKeysData: map[string]api.QueryMasterKeysResponse{
136134
"@user:example.com": {
137-
Key: &types.CrossSigningKey{
138-
KeyData: spec.Base64Bytes("key1"),
139-
},
135+
Key: spec.Base64Bytes("key1"),
140136
},
141137
},
142138
}
@@ -200,9 +196,7 @@ func Test_UploadCrossSigningDeviceKeys_ExistingKeysMismatch(t *testing.T) {
200196
},
201197
queryMasterKeysData: map[string]api.QueryMasterKeysResponse{
202198
"@user:example.com": {
203-
Key: &types.CrossSigningKey{
204-
KeyData: spec.Base64Bytes("different_key"),
205-
},
199+
Key: spec.Base64Bytes("different_key"),
206200
},
207201
},
208202
}

0 commit comments

Comments
 (0)