mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 07:35:49 -06:00
Fix test
This commit is contained in:
parent
3ff8bacc45
commit
f256a4101b
1 changed files with 1 additions and 1 deletions
|
|
@ -2700,7 +2700,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) < 100*time.Millisecond)
|
require.True(t, time.Since(start) < 500*time.Millisecond)
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue