mirror of
				https://github.com/taigrr/godns
				synced 2025-01-18 04:03:25 -08:00 
			
		
		
		
	update testcase
This commit is contained in:
		
							parent
							
								
									05aca524ee
								
							
						
					
					
						commit
						7bf7ae2caa
					
				@ -5,7 +5,8 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func testGetCurrentIP(t *testing.T) {
 | 
					func testGetCurrentIP(t *testing.T) {
 | 
				
			||||||
	ip, _ := GetCurrentIP("http://members.3322.org/dyndns/getip")
 | 
						conf := &Settings{IPUrl: "http://members.3322.org/dyndns/getip"}
 | 
				
			||||||
 | 
						ip, _ := GetCurrentIP(conf)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ip == "" {
 | 
						if ip == "" {
 | 
				
			||||||
		t.Log("IP is empty...")
 | 
							t.Log("IP is empty...")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user