@@ -165,7 +165,9 @@ func TestVerification_SAS(t *testing.T) {
165
165
166
166
// Ensure that the receiving device showed emojis and SAS numbers.
167
167
assert .Len (t , receivingCallbacks .GetDecimalsShown (txnID ), 3 )
168
- assert .Len (t , receivingCallbacks .GetEmojisShown (txnID ), 7 )
168
+ emojis , descriptions := receivingCallbacks .GetEmojisAndDescriptionsShown (txnID )
169
+ assert .Len (t , emojis , 7 )
170
+ assert .Len (t , descriptions , 7 )
169
171
} else {
170
172
// Process the first key event on the sending device.
171
173
ts .dispatchToDevice (t , ctx , sendingClient )
@@ -178,7 +180,9 @@ func TestVerification_SAS(t *testing.T) {
178
180
179
181
// Ensure that the sending device showed emojis and SAS numbers.
180
182
assert .Len (t , sendingCallbacks .GetDecimalsShown (txnID ), 3 )
181
- assert .Len (t , sendingCallbacks .GetEmojisShown (txnID ), 7 )
183
+ emojis , descriptions := sendingCallbacks .GetEmojisAndDescriptionsShown (txnID )
184
+ assert .Len (t , emojis , 7 )
185
+ assert .Len (t , descriptions , 7 )
182
186
}
183
187
assert .Equal (t , txnID , secondKeyEvt .TransactionID )
184
188
assert .NotEmpty (t , secondKeyEvt .Key )
@@ -193,7 +197,10 @@ func TestVerification_SAS(t *testing.T) {
193
197
ts .dispatchToDevice (t , ctx , receivingClient )
194
198
}
195
199
assert .Equal (t , sendingCallbacks .GetDecimalsShown (txnID ), receivingCallbacks .GetDecimalsShown (txnID ))
196
- assert .Equal (t , sendingCallbacks .GetEmojisShown (txnID ), receivingCallbacks .GetEmojisShown (txnID ))
200
+ sendingEmojis , sendingDescriptions := sendingCallbacks .GetEmojisAndDescriptionsShown (txnID )
201
+ receivingEmojis , receivingDescriptions := receivingCallbacks .GetEmojisAndDescriptionsShown (txnID )
202
+ assert .Equal (t , sendingEmojis , receivingEmojis )
203
+ assert .Equal (t , sendingDescriptions , receivingDescriptions )
197
204
198
205
// Test that the first MAC event is correct
199
206
var firstMACEvt * event.VerificationMACEventContent
0 commit comments