mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-13 17:27:51 +07:00
Fixed race conditions in tests
This commit is contained in:
@ -5,7 +5,6 @@ import (
|
||||
"github.com/gavv/httpexpect"
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/httptest"
|
||||
"github.com/op/go-logging"
|
||||
"gopkg.in/DATA-DOG/go-sqlmock.v1"
|
||||
"testing"
|
||||
)
|
||||
@ -27,7 +26,7 @@ func SetupIris(t *testing.T, debug bool, noauth bool) *httpexpect.Expect {
|
||||
}
|
||||
DNSConf = dnscfg
|
||||
// In memory logger
|
||||
logging.InitForTesting(logging.DEBUG)
|
||||
//logging.InitForTesting(logging.DEBUG)
|
||||
err := DB.Init(DNSConf.Database.Engine, DNSConf.Database.Connection)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user