Fix unit test possibly

This commit is contained in:
Neil Alexander 2022-02-22 12:35:35 +00:00
parent 8a3ee19413
commit 8128b730ef
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -245,6 +245,7 @@ func (u *DeviceListUpdater) update(ctx context.Context, event gomatrixserverlib.
// DeviceKeysJSON will side-effect modify this, so it needs // DeviceKeysJSON will side-effect modify this, so it needs
// to be a copy, not sharing any pointers with the above. // to be a copy, not sharing any pointers with the above.
deviceKeysCopy := *keys[0].DeviceKeys deviceKeysCopy := *keys[0].DeviceKeys
deviceKeysCopy.KeyJSON = nil
existingKeys := []api.DeviceMessage{ existingKeys := []api.DeviceMessage{
{ {
Type: keys[0].Type, Type: keys[0].Type,