коммит произвёл
GitHub
родитель
b45ff0be5d
Коммит
717a4d04a9
@@ -388,7 +388,7 @@ func TestSplitWebhookPost(t *testing.T) {
|
||||
"LongPostAndMultipleAttachments": {
|
||||
Post: &model.Post{
|
||||
Message: strings.Repeat("本", maxPostSize*3/2),
|
||||
Props: map[string]interface{}{
|
||||
Props: map[string]any{
|
||||
"attachments": []*model.SlackAttachment{
|
||||
{
|
||||
Text: strings.Repeat("本", 1000),
|
||||
@@ -408,7 +408,7 @@ func TestSplitWebhookPost(t *testing.T) {
|
||||
},
|
||||
{
|
||||
Message: strings.Repeat("本", maxPostSize/2),
|
||||
Props: map[string]interface{}{
|
||||
Props: map[string]any{
|
||||
"attachments": []*model.SlackAttachment{
|
||||
{
|
||||
Text: strings.Repeat("本", 1000),
|
||||
@@ -420,7 +420,7 @@ func TestSplitWebhookPost(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
Props: map[string]interface{}{
|
||||
Props: map[string]any{
|
||||
"attachments": []*model.SlackAttachment{
|
||||
{
|
||||
Text: strings.Repeat("本", model.PostPropsMaxUserRunes-1000),
|
||||
@@ -433,7 +433,7 @@ func TestSplitWebhookPost(t *testing.T) {
|
||||
"UnsplittableProps": {
|
||||
Post: &model.Post{
|
||||
Message: "foo",
|
||||
Props: map[string]interface{}{
|
||||
Props: map[string]any{
|
||||
"foo": strings.Repeat("x", model.PostPropsMaxUserRunes*2),
|
||||
},
|
||||
},
|
||||
@@ -467,7 +467,7 @@ func makePost(message int, attachments []int) *model.Post {
|
||||
}
|
||||
sa = append(sa, attach)
|
||||
}
|
||||
props = map[string]interface{}{"attachments": sa}
|
||||
props = map[string]any{"attachments": sa}
|
||||
}
|
||||
post := &model.Post{
|
||||
Message: strings.Repeat("那", message),
|
||||
@@ -782,7 +782,7 @@ func TestDoOutgoingWebhookRequest(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("with a slow response", func(t *testing.T) {
|
||||
releaseHandler := make(chan interface{})
|
||||
releaseHandler := make(chan any)
|
||||
|
||||
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
// Don't actually handle the response, allowing the app to timeout.
|
||||
|
||||
Ссылка в новой задаче
Block a user