From c8c16eb8e6f392703e3c99c4a01bbc3d67fe65ec Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Thu, 16 Feb 2023 16:32:43 -0500 Subject: [PATCH] Fix failing test --- server/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server_test.go b/server/server_test.go index fb78523..f183f08 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -1498,7 +1498,7 @@ func TestServer_PublishAttachmentTooLargeBodyVisitorAttachmentTotalSizeLimit(t * c.VisitorAttachmentTotalSizeLimit = 10000 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()) require.Equal(t, 200, response.Code) require.Equal(t, "You received a file: attachment.txt", msg.Message)