mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix mobile unit test
This commit is contained in:
		
							parent
							
								
									fa3d943ba9
								
							
						
					
					
						commit
						68d1036de8
					
				
					 1 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,9 +1,21 @@
 | 
				
			||||||
package mobile
 | 
					package mobile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import "testing"
 | 
					import (
 | 
				
			||||||
 | 
						"os"
 | 
				
			||||||
 | 
						"testing"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						"github.com/gologme/log"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestStartYggdrasil(t *testing.T) {
 | 
					func TestStartYggdrasil(t *testing.T) {
 | 
				
			||||||
	ygg := &Yggdrasil{}
 | 
						logger := log.New(os.Stdout, "", 0)
 | 
				
			||||||
 | 
						logger.EnableLevel("error")
 | 
				
			||||||
 | 
						logger.EnableLevel("warn")
 | 
				
			||||||
 | 
						logger.EnableLevel("info")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ygg := &Yggdrasil{
 | 
				
			||||||
 | 
							logger: logger,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	if err := ygg.StartAutoconfigure(); err != nil {
 | 
						if err := ygg.StartAutoconfigure(); err != nil {
 | 
				
			||||||
		t.Fatalf("Failed to start Yggdrasil: %s", err)
 | 
							t.Fatalf("Failed to start Yggdrasil: %s", err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue