mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix core_test.go
This commit is contained in:
		
							parent
							
								
									3646a8674c
								
							
						
					
					
						commit
						9b28f725e2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -11,11 +11,12 @@ import (
 | 
			
		|||
	"github.com/gologme/log"
 | 
			
		||||
 | 
			
		||||
	"github.com/yggdrasil-network/yggdrasil-go/src/config"
 | 
			
		||||
	"github.com/yggdrasil-network/yggdrasil-go/src/defaults"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// GenerateConfig produces default configuration with suitable modifications for tests.
 | 
			
		||||
func GenerateConfig() *config.NodeConfig {
 | 
			
		||||
	cfg := config.GenerateConfig()
 | 
			
		||||
	cfg := defaults.GenerateConfig()
 | 
			
		||||
	cfg.AdminListen = "none"
 | 
			
		||||
	cfg.Listen = []string{"tcp://127.0.0.1:0"}
 | 
			
		||||
	cfg.IfName = "none"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue