binwiederhier před 3 roky
rodič
revize
c8c16eb8e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      server/server_test.go

+ 1 - 1
server/server_test.go

@@ -1498,7 +1498,7 @@ func TestServer_PublishAttachmentTooLargeBodyVisitorAttachmentTotalSizeLimit(t *
 	c.VisitorAttachmentTotalSizeLimit = 10000
 	c.VisitorAttachmentTotalSizeLimit = 10000
 	s := newTestServer(t, c)
 	s := newTestServer(t, c)
 
 
-	response := request(t, s, "PUT", "/mytopic", util.RandomString(5000), nil)
+	response := request(t, s, "PUT", "/mytopic", "text file!"+util.RandomString(4990), nil)
 	msg := toMessage(t, response.Body.String())
 	msg := toMessage(t, response.Body.String())
 	require.Equal(t, 200, response.Code)
 	require.Equal(t, 200, response.Code)
 	require.Equal(t, "You received a file: attachment.txt", msg.Message)
 	require.Equal(t, "You received a file: attachment.txt", msg.Message)