mirror of
https://github.com/beego/bee.git
synced 2024-12-22 10:00:50 +00:00
Fix beego#4377
This commit is contained in:
parent
037f319c11
commit
486ac49f38
@ -104,6 +104,9 @@ import (
|
||||
"testing"
|
||||
"runtime"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/beego/beego/v2/core/logs"
|
||||
|
||||
_ "{{.Appname}}/routers"
|
||||
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
@ -123,7 +126,7 @@ func TestBeego(t *testing.T) {
|
||||
w := httptest.NewRecorder()
|
||||
beego.BeeApp.Handlers.ServeHTTP(w, r)
|
||||
|
||||
beego.Trace("testing", "TestBeego", "Code[%d]\n%s", w.Code, w.Body.String())
|
||||
logs.Trace("testing", "TestBeego", "Code[%d]\n%s", w.Code, w.Body.String())
|
||||
|
||||
Convey("Subject: Test Station Endpoint\n", t, func() {
|
||||
Convey("Status Code Should Be 200", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user