1
0

main_test.go 285 B

12345678910111213141516171819
  1. package integration
  2. import (
  3. "os"
  4. "testing"
  5. "github.com/imgproxy/imgproxy/v3"
  6. )
  7. // TestMain performs global setup/teardown for the integration tests.
  8. func TestMain(m *testing.M) {
  9. err := imgproxy.Init()
  10. if err != nil {
  11. panic(err)
  12. }
  13. os.Exit(m.Run())
  14. imgproxy.Shutdown()
  15. }