Browse Source

miss url

pull/13/head
astaxie 9 years ago
parent
commit
b103a8a3a2
  1. 2
      apiapp.go
  2. 2
      new.go

2
apiapp.go

@ -216,7 +216,7 @@ import (
// TestGet is a sample to run an endpoint test
func TestGet(t *testing.T) {
r, _ := http.NewRequest("GET", "/", nil)
r, _ := http.NewRequest("GET", "/object", nil)
w := httptest.NewRecorder()
beego.BeeApp.Handlers.ServeHTTP(w, r)

2
new.go

@ -184,7 +184,7 @@ import (
// TestMain is a sample to run an endpoint test
func TestMain(t *testing.T) {
r, _ := http.NewRequest("GET", "/object", nil)
r, _ := http.NewRequest("GET", "/", nil)
w := httptest.NewRecorder()
beego.BeeApp.Handlers.ServeHTTP(w, r)

Loading…
Cancel
Save