mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-15 16:07:55 +00:00
Try to fix flaky again
This commit is contained in:
@@ -2702,7 +2702,7 @@ func TestServer_PublishWhileUpdatingStatsWithLotsOfMessages(t *testing.T) {
|
|||||||
response := request(t, s, "PUT", "/mytopic", "some body", nil)
|
response := request(t, s, "PUT", "/mytopic", "some body", nil)
|
||||||
m := toMessage(t, response.Body.String())
|
m := toMessage(t, response.Body.String())
|
||||||
require.Equal(t, "some body", m.Message)
|
require.Equal(t, "some body", m.Message)
|
||||||
require.True(t, time.Since(start) < 500*time.Millisecond)
|
require.True(t, time.Since(start) < 2*time.Second)
|
||||||
log.Info("Done: Publishing message; took %s", time.Since(start).Round(time.Millisecond))
|
log.Info("Done: Publishing message; took %s", time.Since(start).Round(time.Millisecond))
|
||||||
|
|
||||||
// Wait for all Goroutines
|
// Wait for all Goroutines
|
||||||
|
|||||||
Reference in New Issue
Block a user