1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-26 13:19:15 +01:00

Fix failing test

This commit is contained in:
binwiederhier 2023-02-16 16:32:43 -05:00
parent c815b183d4
commit c8c16eb8e6

View file

@ -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)