@@ -20,7 +20,7 @@ func TestMessageHistory(t *testing.T) {
20
20
initialText := "initial text"
21
21
customField := "custom_field"
22
22
initialCustomFieldValue := "custom value"
23
- // send a message with initial text
23
+ // send a message with initial text (user1)
24
24
response , err := ch .SendMessage (ctx , & Message {Text : initialText , ExtraData : map [string ]interface {}{customField : initialCustomFieldValue }}, user1 .ID )
25
25
require .NoError (t , err )
26
26
message := response .Message
@@ -56,7 +56,7 @@ func TestMessageHistory(t *testing.T) {
56
56
57
57
secondUpdate := history [0 ]
58
58
assert .Equal (t , updatedText1 , secondUpdate .Text )
59
- assert .Equal (t , user2 .ID , secondUpdate .MessageUpdatedByID )
59
+ assert .Equal (t , user1 .ID , secondUpdate .MessageUpdatedByID )
60
60
assert .Equal (t , updatedCustomFieldValue , secondUpdate .ExtraData [customField ].(string ))
61
61
})
62
62
@@ -85,6 +85,6 @@ func TestMessageHistory(t *testing.T) {
85
85
86
86
secondUpdate := sortedHistory [1 ]
87
87
assert .Equal (t , updatedText1 , secondUpdate .Text )
88
- assert .Equal (t , user2 .ID , secondUpdate .MessageUpdatedByID )
88
+ assert .Equal (t , user1 .ID , secondUpdate .MessageUpdatedByID )
89
89
})
90
90
}
0 commit comments