mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 07:23:22 +00:00 
			
		
		
		
	Merge pull request #23 from ljyf5593/master
fixed tests code cannot convert ".." to type rune
This commit is contained in:
		| @@ -478,7 +478,7 @@ import ( | |||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	_, file, _, _ := runtime.Caller(1) | 	_, file, _, _ := runtime.Caller(1) | ||||||
| 	apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + filepath.Separator))) | 	apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator)))) | ||||||
| 	beego.TestBeegoInit(apppath) | 	beego.TestBeegoInit(apppath) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								new.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								new.go
									
									
									
									
									
								
							| @@ -186,7 +186,7 @@ import ( | |||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	_, file, _, _ := runtime.Caller(1) | 	_, file, _, _ := runtime.Caller(1) | ||||||
| 	apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + filepath.Separator))) | 	apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + string(filepath.Separator)))) | ||||||
| 	beego.TestBeegoInit(apppath) | 	beego.TestBeegoInit(apppath) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 astaxie
					astaxie