diff --git a/bounces_test.go b/bounces_test.go index 18cf0641..7cb31d5c 100644 --- a/bounces_test.go +++ b/bounces_test.go @@ -37,7 +37,7 @@ func TestGetSingleBounce(t *testing.T) { exampleEmail := fmt.Sprintf("%s@%s", strings.ToLower(randomString(64, "")), os.Getenv("MG_DOMAIN")) _, err := mg.GetBounce(ctx, exampleEmail) - require.NotNil(t, err) + require.NoError(t, err) var ure *mailgun.UnexpectedResponseError require.ErrorAs(t, err, &ure)