mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
		
			297 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			297 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package setup
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									_ "github.com/iwind/TeaGo/bootstrap"
							 | 
						||
| 
								 | 
							
									"testing"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestSetup_Run(t *testing.T) {
							 | 
						||
| 
								 | 
							
									setup := NewSetup(&Config{
							 | 
						||
| 
								 | 
							
										APINodeProtocol: "http",
							 | 
						||
| 
								 | 
							
										APINodeHost:     "127.0.0.1",
							 | 
						||
| 
								 | 
							
										APINodePort:     8003,
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
									err := setup.Run()
							 | 
						||
| 
								 | 
							
									if err != nil {
							 | 
						||
| 
								 | 
							
										t.Fatal(err)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									t.Log("OK")
							 | 
						||
| 
								 | 
							
								}
							 |