Fix a test issue where we were ignoring some test parameters

This commit is contained in:
Jon Chambers 2022-08-01 11:02:33 -04:00
parent d0e3fb1901
commit faa6e8324a
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public record OutgoingMessageEntity(UUID guid, int type, long timestamp, @Nullab
UUID.fromString(envelope.getServerGuid()),
envelope.getType().getNumber(),
envelope.getTimestamp(),
envelope.getSource(),
envelope.hasSource() ? envelope.getSource() : null,
envelope.hasSourceUuid() ? UUID.fromString(envelope.getSourceUuid()) : null,
envelope.getSourceDevice(),
envelope.hasDestinationUuid() ? UUID.fromString(envelope.getDestinationUuid()) : null,

View File

@ -30,11 +30,11 @@ class OutgoingMessageEntityTest {
final OutgoingMessageEntity outgoingMessageEntity = new OutgoingMessageEntity(UUID.randomUUID(),
MessageProtos.Envelope.Type.CIPHERTEXT_VALUE,
messageTimestamp,
"+18005551234",
UUID.randomUUID(),
source,
sourceUuid,
source != null ? (int) Device.MASTER_ID : 0,
UUID.randomUUID(),
UUID.randomUUID(),
updatedPni,
messageContent,
serverTimestamp);