Skip to content
Snippets Groups Projects

Use test helpers in main_test.go

All threads resolved!

This MR switches us to the assert and require test helpers throughout main_test.go, adding some obviously missing assertions (principally content-types).

Related to #123 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Thanks @nick.thomas . I am still not used to 'testify' yet so I find it instructive to see these examples.

    I went over the whole thing. It's a slightly risky change. Some of the logic in these tests takes a few corners, especially when it comes to proxying etc. But I did not see any mistakes. Just one comment about a failure message.

  • Nick Thomas added 1 commit

    added 1 commit

    • c0ca6496 - Use test helpers throughout main_test

    Compare with previous version

  • Nick Thomas resolved all discussions

    resolved all discussions

  • Author Maintainer

    Thanks for the comprehensive review @jacobvosmaer-gitlab !

    There is a small amount of risk, but converting the whole file means additions to it are much more likely to use the helpers. Most of the transformations were pretty mechanical.

  • Jacob Vosmaer (GitLab) approved this merge request

    approved this merge request

  • Jacob Vosmaer (GitLab) enabled an automatic merge when the pipeline for c0ca6496 succeeds

    enabled an automatic merge when the pipeline for c0ca6496 succeeds

  • mentioned in commit 41633621

  • Please register or sign in to reply
    Loading