Fix intermittent test failure; bump version

This commit is contained in:
Philipp Heckel 2022-06-23 15:01:35 -04:00
parent 6acb921098
commit 5f2ce5e542
3 changed files with 32 additions and 31 deletions

View file

@ -1068,6 +1068,7 @@ func TestServer_PublishAsJSON_WithEmail(t *testing.T) {
body := `{"topic":"mytopic","message":"A message","email":"phil@example.com"}`
response := request(t, s, "PUT", "/", body, nil)
require.Equal(t, 200, response.Code)
time.Sleep(100 * time.Millisecond) // E-Mail publishing happens in a Go routine
m := toMessage(t, response.Body.String())
require.Equal(t, "mytopic", m.Topic)