mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 02:13:23 +00:00 
			
		
		
		
	fix #312
This commit is contained in:
		
							
								
								
									
										6
									
								
								new.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								new.go
									
									
									
									
									
								
							| @@ -171,13 +171,13 @@ func init() { | ||||
| } | ||||
|  | ||||
|  | ||||
| // TestMain is a sample to run an endpoint test | ||||
| func TestMain(t *testing.T) { | ||||
| // TestBeego is a sample to run an endpoint test | ||||
| func TestBeego(t *testing.T) { | ||||
| 	r, _ := http.NewRequest("GET", "/", nil) | ||||
| 	w := httptest.NewRecorder() | ||||
| 	beego.BeeApp.Handlers.ServeHTTP(w, r) | ||||
|  | ||||
| 	beego.Trace("testing", "TestMain", "Code[%d]\n%s", w.Code, w.Body.String()) | ||||
| 	beego.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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 astaxie
					astaxie