mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-01-03 13:30:08 +07:00
17 lines
219 B
Go
17 lines
219 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
server, resolv = startDNSServer("0.0.0.0:15353")
|
|
flag.Parse()
|
|
exitval := m.Run()
|
|
server.Shutdown()
|
|
DB.DB.Close()
|
|
os.Exit(exitval)
|
|
}
|