Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1080: Update Read and send errors #124

Merged
merged 4 commits into from
Aug 20, 2024
Merged

1080: Update Read and send errors #124

merged 4 commits into from
Aug 20, 2024

Conversation

saquino0827
Copy link
Contributor

Description

Updates Read and Send Errors to move all Non Transient errors(error codes between 400 and 499) to the failure folder.

Issue

Issue 1080

Checklist

  • I have added tests to cover my changes
  • I have added logging where useful (with appropriate log level)
  • I have added GoDocs where required
  • I have updated the documentation accordingly

Note: You may remove items that are not applicable

somesylvie and others added 2 commits August 19, 2024 14:58
Co-Authored-By: jherrflexion <118225331+jherrflexion@users.noreply.github.com>
Co-Authored-By: jcrichlake <145698165+jcrichlake@users.noreply.github.com>
Co-Authored-By: Samuel Aquino <saquino@flexion.us>
Co-Authored-By: Bella L. Quintero <96704946+pluckyswan@users.noreply.github.com>
… for Non Transient Errors

Co-authored-by: Sylvie <sschuresko@flexion.us>
Co-authored-by: jcrichlake <145698165+jcrichlake@users.noreply.github.com>
Co-authored-by: pluckyswan <96704946+pluckyswan@users.noreply.github.com>
Co-authored-by: James Herr <jherr@flexion.us>

func (suite *SenderTestSuite) Test_SendMessage_StatusCodeIs400_ReturnsNonTransientError() {
sender, err := NewSender()
assert.NoError(suite.T(), err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to check for errors after each step if it's not the target of the test?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asserts on test setup have been removed

saquino0827 and others added 2 commits August 19, 2024 16:02
Co-authored-by: Sylvie <sschuresko@flexion.us>
Co-authored-by: pluckyswan <96704946+pluckyswan@users.noreply.github.com>
Co-authored-by: James Herr <jherr@flexion.us>
Co-authored-by: jbiskie <jbiskie@flexion.us>
Co-authored-by: Sylvie <sschuresko@flexion.us>
Co-authored-by: jcrichlake <145698165+jcrichlake@users.noreply.github.com>
Co-authored-by: pluckyswan <96704946+pluckyswan@users.noreply.github.com>
Co-authored-by: James Herr <jherr@flexion.us>
Co-authored-by: jbiskie <jbiskie@flexion.us>
Copy link

sonarcloud bot commented Aug 19, 2024

@saquino0827 saquino0827 merged commit a068f79 into main Aug 20, 2024
13 checks passed
@saquino0827 saquino0827 deleted the read-and-send-errors branch August 20, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants