Skip to content

Commit

Permalink
Merge pull request #179 from thrawn01/thrawn/develop
Browse files Browse the repository at this point in the history
Adding more fields to Events
  • Loading branch information
thrawn01 authored Apr 1, 2019
2 parents 9f84664 + c89f3d0 commit bc20c00
Show file tree
Hide file tree
Showing 6 changed files with 463 additions and 146 deletions.
4 changes: 4 additions & 0 deletions bounces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"strings"
"testing"
"time"

"github.com/facebookgo/ensure"
)
Expand Down Expand Up @@ -85,6 +86,9 @@ func TestAddDelBounces(t *testing.T) {
err = mg.AddBounce(ctx, exampleEmail, "550", "TestAddDelBounces-generated error")
ensure.Nil(t, err)

// Give API some time to refresh cache
time.Sleep(time.Second)

// We should now have one bounce listed when we query the API.
if !findBounce(exampleEmail) {
t.Fatalf("Expected bounce for address %s in list of bounces", exampleEmail)
Expand Down
Loading

0 comments on commit bc20c00

Please sign in to comment.