Fix intermittent test failure; add test for expiring messages after reservation removal

This commit is contained in:
binwiederhier 2023-02-12 12:08:56 -05:00
parent 1f010acb30
commit 6b4971786f
3 changed files with 76 additions and 2 deletions

View file

@ -1339,7 +1339,7 @@ func TestServer_PublishWithTierBasedMessageLimitAndExpiry(t *testing.T) {
}
func TestServer_PublishAttachment(t *testing.T) {
content := util.RandomString(5000) // > 4096
content := "text file!" + util.RandomString(4990) // > 4096
s := newTestServer(t, newTestConfig(t))
response := request(t, s, "PUT", "/mytopic", content, nil)
msg := toMessage(t, response.Body.String())