1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 23:50:54 +00:00

Merge pull request #756 from flycash/updateMd

Fix beego#4377
This commit is contained in:
Ming Deng 2020-12-19 20:52:19 +08:00 committed by GitHub
commit 639eccfef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,9 @@ import (
"testing" "testing"
"runtime" "runtime"
"path/filepath" "path/filepath"
"github.com/beego/beego/v2/core/logs"
_ "{{.Appname}}/routers" _ "{{.Appname}}/routers"
beego "github.com/beego/beego/v2/server/web" beego "github.com/beego/beego/v2/server/web"
@ -123,7 +126,7 @@ func TestBeego(t *testing.T) {
w := httptest.NewRecorder() w := httptest.NewRecorder()
beego.BeeApp.Handlers.ServeHTTP(w, r) 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("Subject: Test Station Endpoint\n", t, func() {
Convey("Status Code Should Be 200", func() { Convey("Status Code Should Be 200", func() {