mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 00:30:57 +00:00 
			
		
		
		
	net: fix failing TestGoLookupIPOrderFallbackToFile
Change-Id: I17ef4e221e5cd0fb8dc553785248ccac59380c6f Reviewed-on: https://go-review.googlesource.com/17321 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
		
							parent
							
								
									d5e8f4dbb8
								
							
						
					
					
						commit
						723605e918
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -413,7 +413,11 @@ func TestGoLookupIPOrderFallbackToFile(t *testing.T) { | |||
| 			t.Errorf("%s: expected to successfully lookup host entry", name) | ||||
| 			continue | ||||
| 		} | ||||
| 		if got, want := addrs, []IPAddr{IPAddr{IP: IP{127, 0, 0, 1}}}; !reflect.DeepEqual(got, want) { | ||||
| 		if len(addrs) != 1 { | ||||
| 			t.Errorf("%s: expected exactly one result, but got %v", name, addrs) | ||||
| 			continue | ||||
| 		} | ||||
| 		if got, want := addrs[0].String(), "127.1.1.1"; got != want { | ||||
| 			t.Errorf("%s: address doesn't match expectation. got %v, want %v", name, got, want) | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Prosnitz
						Benjamin Prosnitz