mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-13 09:03:10 -06:00
Make the almighty linter happy again
This commit is contained in:
parent
0b70eead27
commit
d4b1074fdf
|
|
@ -126,6 +126,7 @@ func TestUserRoomKeys(t *testing.T) {
|
|||
|
||||
// again, this shouldn't result in an error, but return the existing key
|
||||
_, key2, err := ed25519.GenerateKey(nil)
|
||||
assert.NoError(t, err)
|
||||
gotKey, err = db.InsertUserRoomKey(context.Background(), userNID, roomNID, key2)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, gotKey, key)
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ func TestUserRoomKeysTable(t *testing.T) {
|
|||
|
||||
// again, this shouldn't result in an error, but return the existing key
|
||||
_, key2, err := ed25519.GenerateKey(nil)
|
||||
assert.NoError(t, err)
|
||||
gotKey, err = tab.InsertUserRoomKey(context.Background(), nil, userNID, roomNID, key2)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, gotKey, key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue