main_test.go 324 B

1234567891011121314151617181920
  1. package integration
  2. import (
  3. "os"
  4. "testing"
  5. "github.com/imgproxy/imgproxy/v3"
  6. )
  7. const (
  8. bindPort = 9090 // Port to bind imgproxy to
  9. bindHost = "localhost"
  10. )
  11. // TestMain performs global setup/teardown for the integration tests.
  12. func TestMain(m *testing.M) {
  13. imgproxy.Init()
  14. os.Exit(m.Run())
  15. imgproxy.Shutdown()
  16. }