Fix senderID/key conversion unit tests

This commit is contained in:
Devon Hudson 2023-06-14 17:11:27 +01:00
parent 3f4df25b31
commit 8cf6c381e2
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628
2 changed files with 4 additions and 3 deletions

View file

@ -183,7 +183,7 @@ func TestUserRoomKeys(t *testing.T) {
assert.NoError(t, err)
wantKeys := map[spec.RoomID]map[string]string{
*roomID: {
string(key.Public().(ed25519.PublicKey)): userID.String(),
spec.Base64Bytes(key.Public().(ed25519.PublicKey)).Encode(): userID.String(),
},
}
assert.Equal(t, wantKeys, userIDs)