Skip to content

Conversation

@jlvoiseux
Copy link
Contributor

@jlvoiseux jlvoiseux commented May 31, 2022

Motivation / Summary

This PR resolves #179, and contains changes that were taken out of #191 for focus purposes.

Changes

24a5a89 remove testify.Suite in favor of self-sufficient tests, whose teardown is handled by T.Cleanup()
7129e46 uses assert.Contains as intended by remove useless boolean assertions

Older commits are irrelevant, as they were merged as part of #191

@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label May 31, 2022
@jlvoiseux jlvoiseux changed the title Refactor and Simplify Unit Tests Refactor and Simplify Main Unit Tests May 31, 2022
@ghost
Copy link

ghost commented May 31, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-06-01T11:40:47.477+0000

  • Duration: 7 min 3 sec

Test stats 🧪

Test Results
Failed 0
Passed 196
Skipped 4
Total 200

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jlvoiseux jlvoiseux marked this pull request as ready for review May 31, 2022 14:07
@simitt simitt requested a review from a team June 1, 2022 08:54
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

LGTM overall, just a few other small things which I think we can tidy up. Generally, we should probably be using T.Setenv instead of os.Setenv directly.

@jlvoiseux
Copy link
Contributor Author

Thanks for the review @axw ! I have implemented your recommendations in ecdc5f0.

Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@jlvoiseux jlvoiseux merged commit bbebb96 into elastic:main Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-λ-extension AWS Lambda Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor main unit-tests by leveraging testing.F.Cleanup

2 participants