chore: avoid using of log.Fatal in main in tests by stevenh · Pull Request #2739 · testcontainers/testcontainers-go

@stevenh

Remove use of log fatal which prevents defers.

Correct order of Write and WriteHeader a update test to validate the
correct behaviour, leveraging require.

mdelapenya

@mdelapenya mdelapenya changed the title fix: use of log.Fatal in main chore: avoid using of log.Fatal in main

Aug 21, 2024

@mdelapenya mdelapenya changed the title chore: avoid using of log.Fatal in main chore: avoid using of log.Fatal in main in tests

Aug 21, 2024

@mdelapenya mdelapenya added the chore

Changes that do not impact the existing functionality

label

Aug 21, 2024

mdelapenya added a commit that referenced this pull request

Aug 22, 2024
* main:
  chore(deps): bump github/codeql-action from 3.24.9 to 3.25.15 (#2677)
  fix: use of log.Fatal in main (#2739)
  chore: prepare for next minor development cycle (0.34.0)
  chore: use new version (v0.33.0) in modules and examples
  fix: authentication tests on WSL (#2706)
  fix(registry): compatibility with WSL (#2705)

mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request

Aug 26, 2024
* main:
  chore(deps): bump minimal Go version from 1.21 to 1.22 (testcontainers#2743)
  chore(deps): bump github/codeql-action from 3.24.9 to 3.25.15 (testcontainers#2677)
  fix: use of log.Fatal in main (testcontainers#2739)
  chore: prepare for next minor development cycle (0.34.0)
  chore: use new version (v0.33.0) in modules and examples