diff --git a/roomserver/storage/shared/storage_test.go b/roomserver/storage/shared/storage_test.go index 63949a23f..7dc45aed4 100644 --- a/roomserver/storage/shared/storage_test.go +++ b/roomserver/storage/shared/storage_test.go @@ -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) diff --git a/roomserver/storage/tables/user_room_keys_table_test.go b/roomserver/storage/tables/user_room_keys_table_test.go index 3e0c091ac..0647813f5 100644 --- a/roomserver/storage/tables/user_room_keys_table_test.go +++ b/roomserver/storage/tables/user_room_keys_table_test.go @@ -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)