Skip to content

Commit c1ad175

Browse files
committed
more test fixes
1 parent 27f7a5e commit c1ad175

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
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
}

userapi/storage/postgres/cross_signing_keys_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const selectCrossSigningKeysForUserAndKeyTypeSQL = "" +
3838

3939
const upsertCrossSigningKeysForUserSQL = "" +
4040
"INSERT INTO keyserver_cross_signing_keys (user_id, key_type, key_data)" +
41-
" VALUES($1, $2, $3, $4)" +
41+
" VALUES($1, $2, $3)" +
4242
" ON CONFLICT (user_id, key_type) DO UPDATE SET key_data = $3"
4343

4444
type crossSigningKeysStatements struct {

0 commit comments

Comments
 (0)