Fix intermittent test failure; bump version
This commit is contained in:
parent
6acb921098
commit
5f2ce5e542
3 changed files with 32 additions and 31 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue