init_test.go 235 B

1234567891011121314
  1. package user
  2. import (
  3. "context"
  4. "os"
  5. "testing"
  6. "perms-system-server/internal/testutil"
  7. )
  8. func TestMain(m *testing.M) {
  9. testutil.EnsureProduct(context.Background(), testutil.GetTestSqlConn(), "test_product")
  10. os.Exit(m.Run())
  11. }